You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated the minimal zustand version accepted by zfy from 3.0.0 to 3.6.0.
createStore<StoresDataType, StoreNameType>() has been simplified to createStore<StoreDataType>(). In other words, createStore() only care about receiving the type of its data directly and nothing else anymore.
Now that each store can return its name (store.getState().name), we can switch from objects to using an array to provide stores to useRehydrate()/<PersistGate />.
The persistence feature will now be bound the zustand persistence middleware API itself. zfy's solution has been built when zustand did not provide that ability. Therefore, it has no reason to still exist now. This change also lead to the removal of initZfy() method as its not required anymore.
Remove the lazy rehydration feature for now as it's not properly working