fuery_hooks 1.5.1
fuery_hooks: ^1.5.1 copied to clipboard
Hooks for Fuery: useQuery, useInfiniteQuery, useMutation, useQueries, and useMutationState for flutter_hooks, with useOnQueryChange and useOnMutationChange for side effects.
1.5.1 #
- Released with the performance improvements of
fuery_core1.5.1:useQuery,useInfiniteQuery,useQueries, anduseMutationno longer hash a key built again with the same content on every build, anduseMutationStateanduseOnMutationStateChangestay fast with many runs in the cache.
1.5.0 #
- Add
useMutationState(mutation). It returns the state of every run of a mutation, found by itsmutationKeyor byMutationFilters, oldest first, wherever the run was started. - Add
useOnQueryChange,useOnMutationChange, anduseOnMutationStateChangefor side effects, such as a snackbar or navigation, with the rules of the listener widgets. The first two take the result ofuseQuery,useInfiniteQuery, oruseMutation;useOnMutationStateChangehears every run of a mutation, asMutationStateListenerdoes. The listener runs after a change, never during a build and not for the result at mount, with the widget's owncontext. - Exports
FueryFocusManager.FocusManagerstill means Flutter's class.
1.4.4 #
- First release:
useQuery,useInfiniteQuery,useMutation,useQueries, anduseQueryClientrender Fuery's queries and mutations in aHookWidget. Released and versioned together withfueryandfuery_core. - In debug builds, a hook warns once when it gets an observer created in
build, which subscribes again on every rebuild, or an observer of another client than the one it uses. fuery_hooks.dartre-exportsfuerywithout Fuery'sFocusManagerclass, whose name Flutter uses too; thefocusManagersingleton is exported.