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

Use react 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.

1.3.0 #

feature: new hook useRef. feature: new hook useAnimationController.

1.3.1 #

Fix: useState does not return same object. Feature: new hook useAsyncEffect. Feature: new hook useTickerProvider.

1.4.0 #

Feature: an experimental feature HookAutomaticKeepAliveClientMixin added to support mixin on HookWidget.

1.4.1 #

Feature: useAnimationController will auto dispose.

1.4.2 #

Fix: useEffect can memorize changed deps right now.

1.4.3 #

Fix: Pass null to useState should not cause rerender.

1.4.4 #

Fix: clean stashedContext after unmount.

1.5.0 #

Fix: fixed a problem which effect forgot cleanup after recreate. Removal: remove useAsyncEffect.

1.5.1 #

Fix: useEffect not working as expected with multiple effects.

1.5.2 #

Fix: useEffect may be lost.

2
likes
20
pub points
56%
popularity

Publisher

unverified uploader

Use react hooks in flutter!

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on frhooks