frhooks 1.2.9 copy "frhooks: ^1.2.9" to clipboard
frhooks: ^1.2.9 copied to clipboard

outdated

use react like hooks in flutter!

1.0.0 #

  • Initial version, created by Stagehand

1.2.0 #

fix: update can rebuild widget correctly.

  • refactor:HookElement now extends from ComponentElementStatelessElement
  • refactor: HookWidget now extends from ~Widget~StatelessWidget

1.2.2 #

feature: useMemo receive a thunk to lazy compute.

1.2.3 #

feature: hotload will reset hook in Element.

1.2.4 #

fix: reassemble will clear effect.

1.2.5 #

feature: if you insert or remove a hook in your build method, frhooks will rerun the build method and drop the memorized state.

1.2.6 #

fix: frhooks can rerun your hooks correctly after insert or remove one hook.

1.2.7 #

fix: use addPostFrameCallback instead of manual calling didBuild in build.

1.2.8 #

fix: move addPostFrameCallback into willBuild & clean unnecessary variables(currentHookLength & prevHookLength).

1.2.9 #

fix: move _workInProgressHook = null; into willBuild.

2
likes
0
pub points
56%
popularity

Publisher

unverified uploader

use react like hooks in flutter!

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on frhooks