Storage advanced usage non-hook implementation.
I see in the docs that there is an advanced usage section that mentions how to use a render value for realtime input.
My usecase is i am trying to store a stream of chunks coming into a variable. It seems that sometimes the store (set function of the useStorage hook) takes too long and chunks are lost because of this. I assume the render value method was made to address situations like this.
Is there a way to use the render value / setStoreValue with the basic storage API?
const storage = new Storage({
area: "local"
})
I am trying to run this inside an async function (not a hook)
1 Reply
THe renderValue stuffs are all for react runtime. For chunk stream/SSE, use Port API instead