mrmilu / react.base

Mr Milú's official starter template for React.js projects.
5 stars 0 forks source link

Zustand Store limited by Provider scope #11

Closed arnaugomez closed 1 year ago

arnaugomez commented 1 year ago

Create Zustand store that is limited by the scope of a Provider component.

When the Provider unmounts, the store is autodisposed and the memory is freed by the garbage collector.