ryansolid
ryansolid
SSolidJS
Created by snorbi on 11/3/2024 in #support
Reactive array transformation
Yeah this is an interesting topic in a wider sense. I going to think through it. The challenge is there are varying degrees of solutions in this space. You can always take the immutable route but the mutable route is often more optimal but requires rethinking of logic. I need to think about where it is applicable and how one would know.
6 replies
SSolidJS
Created by gerard on 9/15/2024 in #support
crazy bug global store + solid router
Alright very interested in tracking this down.
7 replies
SSolidJS
Created by !helloworld on 9/24/2024 in #support
Solid SSR Setup
Look in the examples folder. I have examples of each type of rendering in a folder. The "app" is in shared
6 replies
SSolidJS
Created by !helloworld on 9/24/2024 in #support
Solid SSR Setup
Not solidstart which uses Nitro which there is less control over.
6 replies
SSolidJS
Created by !helloworld on 9/24/2024 in #support
Solid SSR Setup
6 replies
SSolidJS
Created by Luka on 9/21/2024 in #support
Sevoral Error while using AbortController
I'm not seeing anything returned in the example is why I ask. This looks like client code awaiting some preview_image function. That one could be a server function but the abort controller is on the outside. If this is server code hitting a different server then I'd expect something being returned..
9 replies
SSolidJS
Created by Samual 🦢 on 9/19/2024 in #support
modern equivalent of `createRouteData()`
That's interesting.. revalidation from actions should override any of the caching. The 5 second thing is just to dedupe during the length of a request but actions basicaly 0 the cache and refetch immediately. In the same way createRouteAction did it before. cache + createAsync is the replacement. If it isn't working as expected we should look at that.
11 replies
SSolidJS
Created by Luka on 9/21/2024 in #support
Sevoral Error while using AbortController
I'm lacking context here to see the whole picture or the error. It would only get to seroval if it was being sent back to be serialized and if this is just some client logic against an API endpoint I don't know why seroval would be involved.
9 replies
SSolidJS
Created by !helloworld on 9/24/2024 in #support
Solid SSR Setup
The best example might still be in solid repo itself in the now basically deprecated solid-ssr project. It shows a simple Rollup setup but it has examples showing how to do various forms of SSR rendering.
6 replies
SSolidJS
Created by juliuskiesian on 9/18/2024 in #support
hydration mismatch when using SuspenseList
Honestly I'd probably be cautious of SuspenseList. It is marked as experimental specifically because we had issues with finding a stable hydration strategy with it.
2 replies
SSolidJS
Created by sabercoy on 9/10/2024 in #support
How does Transition API and createAsync interact?
startTransition is what starts it. We start collection all the changes downstream of anything set during that scope, forking it from the main (visible graph). As it propagates if we hit any async resources we associate them with the Transition and finally when all of those async things done we can commit all the changes back to the main graph.
7 replies
SSolidJS
Created by sabercoy on 9/10/2024 in #support
How does Transition API and createAsync interact?
Yeah what is interesting about async functions is from the outside whether there is 1 await or 10 you only see one promise. It makes sense but everything after the first await basically becomes squashed from the outside.
7 replies
SSolidJS
Created by chirptune on 9/9/2024 in #support
How to catch all errors but keep rendered component?
If an ErrorBoundary is triggered it means part of the app couldn't be properly rendered. Keeping that part rendered would have indeterminate behavior. We offer ErrorBoundary as a way to define zones where this can be managed. But not being able to be rendered while containable is not recoverable state otherwise.
3 replies
SSolidJS
Created by sabercoy on 9/10/2024 in #support
How does Transition API and createAsync interact?
Of course we can't enforce that for the same reason.
7 replies
SSolidJS
Created by sabercoy on 9/10/2024 in #support
How does Transition API and createAsync interact?
Until the transition is committed anything outside it's execution will read the old value. The problem here is we can't restore the Transition after the await. Not until we get the returned result. There is no mechanism in JavaScript that let's us intercept there. Usually this isn't a problem as createAsync like createMemo is meant to be pure.. ie no writing other state inside it.
7 replies
SSolidJS
Created by willkelly on 5/17/2024 in #support
Potential upstream problem in solid for users of Astro + solid + cloudflare?
This seems like someone importing a node only library in one of their deps. We don't use node-fetch internally.
49 replies
SSolidJS
Created by willkelly on 5/17/2024 in #support
Potential upstream problem in solid for users of Astro + solid + cloudflare?
49 replies
SSolidJS
Created by anthy on 9/6/2024 in #support
How to use preloaded data
I guess there is one exception, we do keep it around as a back cache incase people navigate using the back button. But it will always fetch fresh on new navigation.
23 replies
SSolidJS
Created by anthy on 9/6/2024 in #support
How to use preloaded data
The same way any client side state would
23 replies
SSolidJS
Created by anthy on 9/6/2024 in #support
How to use preloaded data
So it's a cache in a sense but it goes away when it isn't on the page
23 replies