beekai-oss / little-state-machine

📠 React custom hook for persist state management
https://lrz5wloklm.csb.app/
MIT License
1.47k stars 53 forks source link

When Cookies are disabled, actions.updateAction({ name: 'bill' })} throws an error- TypeError: o.storageType.setItem is not a function. The website handles Cookie Disabled error gracefully by throwing a message, but this breaks the App. How can we avoid that? #102

Closed sahanaravi closed 2 years ago

bluebill1049 commented 2 years ago

we don't use cookie, check for session storage at your app level and indicate user to the user when session stage is disabled or even disable session storage usage in little state machine