You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding a value to sessionStorage via the custom useStorageState hook, you may encounter the error "Failed to execute 'setItem' on 'Storage': Setting the value of 'storedFile' exceeded the quota". The hook has a method for adding a value to SS(setStoredValue), where it can be seen that in case of an error, in the catch block, the error is simply output to console.log. I would like to be able to catch this error to the developer.
My suggestions: make it possible to set an errorCallback to which to pass an error, or throw an exception
-->
馃摑 Changelog
Language
Changelog
馃嚭馃嚫 English
useStorageState catch SessionStorage error
鈽戯笍 Self Check before Merge
鈿狅笍 Please check all items below before review. 鈿狅笍
Doc is updated/provided or not needed
Demo is updated/provided or not needed
TypeScript definition is updated/provided or not needed
Changelog is provided or not needed
The text was updated successfully, but these errors were encountered:
馃 This is a ...
馃敆 Related issue link
馃挕 Background and solution
-->
馃摑 Changelog
鈽戯笍 Self Check before Merge
The text was updated successfully, but these errors were encountered: