frhooks 1.4.3 copy "frhooks: ^1.4.3" to clipboard
frhooks: ^1.4.3 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.

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.

2
likes
0
points
168
downloads

Publisher

unverified uploader

Weekly Downloads

use react like hooks in flutter!

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on frhooks