Provides reactive recipe data and all recipe operations.
The recipes array is a stable reference updated via useSyncExternalStore;
React Compiler memoises derived values automatically, so no useMemo wrappers
are needed in consumers.
scalingProgress is local state — only the component calling
scaleAllRecipesForNewDefaultPersons observes it; other consumers of this
hook see undefined.
decodeError is store-wide rather than slice-scoped: it reports corrupt data
found while decoding any cached table. Recording one notifies the recipes
slice, so the subscription above is what re-renders consumers when it appears.
Provides reactive recipe data and all recipe operations.
The
recipesarray is a stable reference updated viauseSyncExternalStore; React Compiler memoises derived values automatically, so nouseMemowrappers are needed in consumers.scalingProgressis local state — only the component callingscaleAllRecipesForNewDefaultPersonsobserves it; other consumers of this hook seeundefined.decodeErroris store-wide rather than slice-scoped: it reports corrupt data found while decoding any cached table. Recording one notifies therecipesslice, so the subscription above is what re-renders consumers when it appears.