dm-de
dm-de
> This is essentially a loaded footgun. The main problem is, that most people expect and think, this is a default value (like function default value). But in reality this...
My "solution" today is: 1) I use default definitions where possible 2) If I pass a variable to prop, and if this variable can be undefined, I add same default...
I also renamed it to "anim" - but same effect.
> You cannot export a primitive signal directly. This is true only for context="module", but not for *.js.svelte file. Here is a difference, that makes no sense. Think about store:...
OK - I thought at first I was importing a reactive thing similar to a store, but it is more like variable. I lost 1 hour finding out the error.
Look what is possible with Vue: (but it is wrapped - you can modify value and use state in markup) [LINK](https://play.vuejs.org/#eNp9kctuwjAQRX9l5A0gUFKJHQqoD7FoF23VdulNGiY04NiWH9RSlH/v2FEoC8Qq8Zw719czHXvQOjt5ZCtW2Mo02oFF5/WGS4Cm1co46EIPtVEtTLI8ZAc7iaz2snKNklCJpjpOZ9BByE6l8DifQ89lkQ92ZEQHh60WpcNkW3x756jzPrWuOUtfzjYd3dQX+YBJWuQXfWzBnK2UrJs9ZVCSEnfRjdpVqxuB5k3HQJazFSQSWSmE+n1JNWc8LsZ69YPV8Ur9YEOscfZu0KI5IWdn5kqzRzfg7ecrBvo/w1btvCD1DfiBVgkfMw6yRy93FPtCl9I+p6k3cv9lt8GhtOOjYtCo7JOeM1rb042n/8ddZsvUx2VPU4wrpOGNywWDNYwLJssJN1xiSFCggwDrKJnezSJg/R+Mmbsh) Look what is possible with Solid: (but is solved...
> Svelte 5 (as suggested, using helper function) I don't know why, but for my real project, code like above didn't solved it - and I switched back to store....
> By the way your Svelte 5 example is slightly off Thank you, I discovered this too
What about Svelte docs section: pitfalls? Specially, if someone come from other framework (Vue etc.)
Thank you! I don't know this. Here is one little problem: svelte-preprocess-cssmodules requires "svelte": "^3.22.3" (updated 1 year ago) so I get errors: ``` Could not resolve dependency: npm ERR!...