Katja (katywings)
Katja (katywings)
SSolidJS
Created by Katja (katywings) on 8/20/2024 in #support
onMount randomly not called
From what I can tell so far, this fixed both of my issues 🥳
- the effects (including onMount) ran reliably in all 30 tries (tab reloads) - link hover during hydration doesn't break the app anymore I gonna deploy it to prod next and make there a couple more runs 🙂 Edit: still no issues, after further use throughout the afternoon 🎉
130 replies
SSolidJS
Created by Katja (katywings) on 8/20/2024 in #support
onMount randomly not called
I'd love to make a simple one but failed so far 🙈
130 replies
SSolidJS
Created by Katja (katywings) on 8/20/2024 in #support
onMount randomly not called
for me its happening with everything on latest (just in case 😅)
130 replies
SSolidJS
Created by Katja (katywings) on 8/20/2024 in #support
onMount randomly not called
We really need some @ryansolid magic here 😆
130 replies
SSolidJS
Created by Katja (katywings) on 8/20/2024 in #support
onMount randomly not called
Okay this bug is worse than i thought... hovering or clicking on a link during hydration, also skips all effects 🤯
130 replies
SSolidJS
Created by Katja (katywings) on 8/20/2024 in #support
onMount randomly not called
Found a temporary workaround by reloading the page, if the effect did not run before document onload. Not happy about this but remarkable times sometimes ask for remarkable workarounds I guess 🙈. (https://codeberg.org/nitropage/nitropage/commit/63dd2ac23c25f4706985dc396b4d2a849294661e)
130 replies
SSolidJS
Created by Katja (katywings) on 8/20/2024 in #support
onMount randomly not called
Okay, just checked this, when the bug happens it skips all effects of said component, not only the onMount. And the component function itself is not skipped (e.g. console.logs in the component function are executed) Just in case, this is the component where it is happening: https://codeberg.org/nitropage/nitropage/src/commit/bab5a12117781be480b7b4504d4416d64832db3c/packages/nitropage/src/components/admin/index.tsx#L36
130 replies
SSolidJS
Created by Katja (katywings) on 8/20/2024 in #support
onMount randomly not called
@ryansolid could this be somehow related to the recent hydration changes? 🤔
130 replies
SSolidJS
Created by Katja (katywings) on 8/20/2024 in #support
onMount randomly not called
e.g: - component A onMount is skipped - deep component B effect runs
130 replies
SSolidJS
Created by Katja (katywings) on 8/20/2024 in #support
onMount randomly not called
I sadly dont have the time to debug this at the moment 🙈
130 replies
SSolidJS
Created by Katja (katywings) on 8/20/2024 in #support
onMount randomly not called
sibling effects run 🥴
130 replies
SSolidJS
Created by Katja (katywings) on 8/20/2024 in #support
onMount randomly not called
like so? 🤔 - some parent - component with failing onMount - different component with memo
130 replies
SSolidJS
Created by Katja (katywings) on 8/7/2024 in #support
Caching server-side render results
Thank you both for the help @Brendonovich @Madaxen86 ❤️!
25 replies
SSolidJS
Created by Katja (katywings) on 8/7/2024 in #support
Caching server-side render results
Holy moly! The onBeforeResponse middleware even receives the body as a string because nitro awaits the promise in async mode. I can lower the server html response times with this from 220ms to 4ms 😱. (Tested locally with an sqlite database)
25 replies
SSolidJS
Created by Katja (katywings) on 8/7/2024 in #support
Caching server-side render results
Yeah that seems like the best way to do this, great idea!
25 replies
SSolidJS
Created by Katja (katywings) on 8/7/2024 in #support
Caching server-side render results
If users wanna go the cloudflare route to optimize their NP deployments all power to them, but the included solution in NP should work without external services by default, thats the key 😅
25 replies
SSolidJS
Created by Katja (katywings) on 8/7/2024 in #support
Caching server-side render results
I need to try this out, NOW! The nitro route cache didnt work 😌
25 replies
SSolidJS
Created by Katja (katywings) on 8/7/2024 in #support
Caching server-side render results
whuaaat 😱
25 replies
SSolidJS
Created by Katja (katywings) on 8/7/2024 in #support
Caching server-side render results
I can try it with renderToString for now...
25 replies
SSolidJS
Created by Katja (katywings) on 8/7/2024 in #support
Caching server-side render results
Thats exactly what I wanna do, but I think renderToStream that Start uses for async is not the proper render type for caching.
25 replies