S
SolidJS3mo ago
anthy

Inconsistent prop logging between playground and local setup

When I run this code in the playground https://playground.solidjs.com/anonymous/4f22d50d-c034-42c4-8bc5-4b643a06731d the console logs:
Receiver
{staticProp: 'Hello', message: 'Hello'}
Receiver
{staticProp: 'Hello', message: 'Hello'}
Which is correct. But when I run the same exact code with vite from a local setup it prints:
Receiver
{staticProp: 'Hello'}
Receiver
{staticProp: 'Hello'}
Why is that? Using Solid 1.8.22
Solid Playground
Quickly discover what the solid compiler will generate from your JSX template
2 Replies
bigmistqke
bigmistqke3mo ago
Interesting, I think it has something to do with how the devtools showcases getters: the data is actually there, but it just isn't shown in the console.
bigmistqke
bigmistqke3mo ago
this is what is logged when i console.log(JSON.stringify(props))
No description
Want results from more Discord servers?
Add your server