Closed SanterreJo closed 4 years ago
What:
Fixes #265 As suggested by @robertgr991 Use type inference benefits when using a function like rehydrated
rehydrated
Why:
When implementing a function like rehydrated the store argument is currently typed as any.
any
How:
By adding a generic type when calling the createPersistedState function
createPersistedState
const persisted = createPersistedState<RootState>();
Checklist:
@SanterreJo thanks for the effort!
@all-contributors please add @SanterreJo for code
@robinvdvleuten
I've put up a pull request to add @SanterreJo! :tada:
What:
Fixes #265 As suggested by @robertgr991 Use type inference benefits when using a function like
rehydrated
Why:
When implementing a function like
rehydrated
the store argument is currently typed asany
.How:
By adding a generic type when calling the
createPersistedState
functionChecklist: