Replies: 2 comments 6 replies
-
Here's how to pass a custom storage to react hook: https://docs.plasmo.com/framework/storage#with-a-custom-storage-instance You might also want to use the unlimitedStorage perm as well. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hey @louisgv thanks for the help! I see the custom storage react hook now. I'm going to give it a shot here shortly. Gotcha. So you're staying to include the unlimitedStorage permission provided by Chrome.storage.local? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What happened?
I'm grabbing some data and putting it in storage. I'm getting the following error.
Uncaught (in promise) Error: QUOTA_BYTES_PER_ITEM quota exceeded
In my previous version (prior to Plasmo), I never encountered this error when using chrome's storage. The data is quite large and I know chrome has some limits set, but on the same data being added in the same shape in a non-plasmo version vs. Plasmo - the plasmo version is the only one that returns this error and breaks. I imagine this is because it's using the sync underneath instead of local?
Here's the shape of the data.
So on and so forth. Prior to plasmo, this file could get to 10k plus entries.
Notes
area
to "local" for parts of my application. But it doesn't seem like you can do that same customization with the React Hooks. What I mean is that swapping it here doesn't seem to effect where the storage hook is placing it. That causes different issues to pop up.Version
Latest
What OS are you seeing the problem on?
MacOSX
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
(OPTIONAL) Contribution
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions