Closed MartinTale closed 1 year ago
Issue wasn't related to solid
nor classy-solid
(kinda). I used JSON.stringify(state)
which included __propsSetAtLeastOnce__
so when I called JSON.parse(stringifiedState)
it broke things.
My solution was to omit that property when calling JSON.stringify(state)
as below.
JSON.stringify(state, (key, value) => {
if (key === '__propsSetAtLeastOnce__') {
return undefined
}
return value;
});
Trying to create a signalified object using below code.
Then, in component I import state and increment/display it
It then results in the error below