Issue with localStorage and signals
Hii sorry to bother y'all but I have been having this problem for 3 days now, so everytime I change the cdg object (changing the gameImage and gameTitle) if I go to dev tools it shows that it changed but later it isn't showing the new gameImage nor gameTitle
I tried passing it down as props or use createComputed, or createMemo but it doesn't seem to even see the change of CDG.
3 Replies
I tried passing it down as props or use createComputed, or createMemo but it doesn't seem to even see the change of CDG.
When I first open the app it shows the old gameImage and gameTitle but when I set new ones in another component it doesn't update and I have to reload the page for it to work
https://playground.solidjs.com/anonymous/2610f02f-d7d8-4860-813f-c6360e119997
The issue is that:
TheYou don't get astorage
event of theWindow
interface fires when a storage area (localStorage
orsessionStorage
) has been modified in the context of another document.
storage
event within the document
that updated storage
.Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
Sorry for the late answer I have been busy
Thank you for this I will try it out soon and keep you updated 🫶🏻
I am really thankful it worked perfectly