ryansolid
crazy bug global store + solid router
I really needs some sort of reproduction on this one. Because looking at the code and what you've written to be the problem we are still missing something. The if the Transition is running then the memo will be added to it so the only places it would miss I'd think is if it isn't running and the memo isn't part of it, but then it should fine?...
10 replies
actions: I can't tell if this is a bug or a feature
An action is only accontable for what it undersands. In theory it could understand a stream but it has no way of understanding a signal in the sense of am I done since Signals have no sense of time.
25 replies
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
Solid SSR Setup
Sorry I meant this: https://github.com/solidjs/solid/tree/main/packages/solid-ssr
6 replies
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
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
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
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
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
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