We need some help! We have done a lot of work to isolate this bug and we are very sure that something on the Wix side is preventing a Local storage variable from passing from page 1 to page 2.
We are trying to pass two IDs that are Wix generated unique IDs after a product is created. Then we use setItem for two Local variables to set them to those two ID strings during an async API sequence.
At the end of the sequence, when we transition from page 1 to page 2, the getItem function for those two local variable return empty values (strings).
We have done print statements in Google chrome debugger console printing the variable on both pages. On the first page, the console.log prints the correct value, then after transition to the second page it prints as empty. It’s two lines apart on the google console, it should print the same value just fine.
Hi Matthew,
Please submit a ticket about the suspected bug to Wix Customer Care . They’ll see if others have reported the issue and escalate it to the appropriate team. Thanks.
Did this get resolved ? having the same issue… on one page I have a Menu Trigger that writes a value to session with setItem then re-reads immediately to check its there. The console Log shows the value being written & re-read… Wix then triggers the change of page from the menu option selected… but on that page the re-read with getItem is an older value or null so its not picking up the value stored… any ideas ?