yamalight / outstated

Simple hooks-based state management for React
107 stars 7 forks source link

Middlewares? #4

Closed Darksoulsong closed 5 years ago

Darksoulsong commented 5 years ago

What if I want to use middlewares, like logging, or persisting? How can I use them with outstated? Nice lib, BTW.

yamalight commented 5 years ago

I'd say the easiest way would be just to use hooks that do what you want. E.g. something like use-persisted-state for persistence.

yamalight commented 5 years ago

Closing this due to inactivity.