theowiik / carabiner

1 stars 0 forks source link

Save state to local storage #9

Closed Victor-Ek closed 2 years ago

Victor-Ek commented 2 years ago

This adds a new hook called useSsrLocalStorage to save the state to local storage. The new hooks works like useState hook except that it also saves that state to local storage. Hook is a slightly modified version of this hook so that it works better with nexts ssr and hydration.

theowiik commented 2 years ago

:raised_hands: