Warning: Only plain objects can be passed to Client Components from Server Components. Objects with toJSON methods are not supported. Convert it manually to a simple value before passing it to props. #502
[ ] Check if updating to the latest Preact version resolves the issue
Describe the bug
version:
@preact/signals-react": "^2.0.0",
pass the variable to child component, there is a warning:
code:
const result = signal(0)
<ChildComponent result={result} />
Warning: Only plain objects can be passed to Client Components from Server Components. Objects with toJSON methods are not supported. Convert it manually to a simple value before passing it to props.
<... filters={[...]} result={</>}>
Describe the bug
version:
pass the variable to child component, there is a warning: code: