KiaClouth
KiaClouth
Explore posts from servers
SSolidJS
Created by KiaClouth on 10/14/2024 in #support
How to reduce undefined judgments
When I need to store a value that may change in a component, I immediately think of signal. But from this example, it's really just a matter of storing it in an ordinary variable. Thanks
19 replies
SSolidJS
Created by KiaClouth on 10/14/2024 in #support
How to reduce undefined judgments
OK, I'll try this.
19 replies
SSolidJS
Created by KiaClouth on 10/14/2024 in #support
How to reduce undefined judgments
Thanks, I hadn't thought of doing that at all, thanks for your advice
19 replies
SSolidJS
Created by KiaClouth on 10/14/2024 in #support
How to reduce undefined judgments
// Thanks for your answer, but I think I described it wrong. Actually I want to solve the problem of ts, because I need to execute many statements like engine().scene = {}, but judging engine() !== undefined can't ensure that engine() !== undefined afterwards. That's it, I want to write less error handling without using !. I hope I made it clear...
19 replies
SSolidJS
Created by KiaClouth on 10/14/2024 in #support
How to reduce undefined judgments
Thank you for your reply, I know using ! can solve the problem, but I am worried that it has hidden dangers, so I try to find a more elegant solution, but maybe I am asking for trouble
19 replies
SSolidJS
Created by KiaClouth on 10/14/2024 in #support
How to reduce undefined judgments
I should have made a mistake there, it was actually engine().dispose();
19 replies
SSolidJS
Created by KiaClouth on 7/2/2024 in #support
Incorrect response MIME type. Expected 'application/wasm'.
I also want to change to import with URL, but this problem occurs inside wa-sqlite, and the compressed mjs is not easy to modify.😭
7 replies
SSolidJS
Created by KiaClouth on 7/2/2024 in #support
Incorrect response MIME type. Expected 'application/wasm'.
Just tried adding it to app.config.ts, but it didn't work. I looked for methods like WebAssembly.instantiateStreaming in the code of wa-sqlite. I don’t know much about it. It may take more time. I plan to change the method for the time being. Thank you for your suggestion.
7 replies