Proxy error
Hi,
I'm a beginner in Solid and I wrote a little app to learn it.
https://github.com/gbagan/nim-machine/blob/test/src/App.tsx
In this app, I have created a store
Then, I wrote a function
When, this function is called, I obtain the following message error:
on the line
Initially I wrote this function differently (without using
I'd like to understand this error and how to prevent it.
I'm a beginner in Solid and I wrote a little app to learn it.
https://github.com/gbagan/nim-machine/blob/test/src/App.tsx
In this app, I have created a store
state which contains an attribute config (line 42)Then, I wrote a function
changeConfig which modifies the store (line 132)When, this function is called, I obtain the following message error:
Uncaught TypeError: proxy must report the same value for the non-writable, non-configurable property 'Symbol("solid-proxy")'on the line
state.config = fn(state.config).Initially I wrote this function differently (without using
produce) and it worked fine.I'd like to understand this error and how to prevent it.
