Re:For your next side project, make a browser extension
by fregante on Sunday January 15, 2023 @10:45PM
(#34396556)
Look into chrome.storage.session, they created it explicitly to allow in-memory storage for those scenarios. Not as easy as just setting a property, but good enough.
[ Parent
| on HN ]
Re:For your next side project, make a browser extension
by sb8244 on Sunday January 15, 2023 @11:33PM
(#34396833)
I'd be curious about latency for frequent access and the 1MB quota. I think that may make it a similar solution on the surface, but fairly limited in usage.
I was powering a fairly large amount of state, to the point we had to diff state changes due to browser message costs. It was difficult to write, but was incredibly powerful.