brenelz
brenelz
SSolidJS
Created by sean on 1/1/2025 in #support
How to use query.set (prev cache.set) to mutate async data for optimistic updates?
I think you want to use the onComplete hook on the action
9 replies
SSolidJS
Created by Mango Juicy on 12/17/2024 in #support
Is there a 'useTransition' React hook equivalent in Solid?
3 replies
SSolidJS
Created by Jeremy on 12/10/2024 in #support
Behavior of query.set / cache.set
Where are you using .set? I think the place you should use it is the onComplete function of an action
2 replies
SSolidJS
Created by smr.gg on 12/6/2024 in #support
actions: I can't tell if this is a bug or a feature
Maybe it clears submission on navigation
25 replies
SSolidJS
Created by smr.gg on 12/6/2024 in #support
actions: I can't tell if this is a bug or a feature
Thanks this is a good reproduction. I haven't used a stream like this so not sure
25 replies
SSolidJS
Created by smr.gg on 12/6/2024 in #support
actions: I can't tell if this is a bug or a feature
Can you make a reproduction?
25 replies
SSolidJS
Created by Christian on 12/1/2024 in #support
Redirect in createResource
There is also a built in 404 catch all route in solidstart?
22 replies
SSolidJS
Created by Christian on 12/1/2024 in #support
Redirect in createResource
I think the cache wrapper is the one that intercepts and handles the redirect
22 replies
SSolidJS
Created by Christian on 12/1/2024 in #support
Redirect in createResource
Yeah not sure
22 replies
SSolidJS
Created by Christian on 12/1/2024 in #support
Redirect in createResource
Also you might be able to use the navigate component if you just need to redirect https://docs.solidjs.com/solid-router/reference/components/navigate
22 replies
SSolidJS
Created by Christian on 12/1/2024 in #support
Redirect in createResource
I thought maybe you had to use the signal from createAsync but I guess not
22 replies
SSolidJS
Created by Christian on 12/1/2024 in #support
Redirect in createResource
Oh ok... So it probably doesn't work with resources
22 replies
SSolidJS
Created by Christian on 12/1/2024 in #support
Redirect in createResource
It might be called "cache" instead then. It was renamed
22 replies
SSolidJS
Created by Christian on 12/1/2024 in #support
Redirect in createResource
Does it work if you wrap the handle redirect function in a query()?
22 replies
SSolidJS
Created by hannus on 11/8/2024 in #support
can I handle a group of useSubmisson?
I think that's correct
8 replies
SSolidJS
Created by hannus on 11/8/2024 in #support
can I handle a group of useSubmisson?
There is a plural version called useSubmissions
8 replies
SSolidJS
Created by TheKnightCoder on 10/20/2024 in #support
Can I nest cache functions
I think it works unless you like redirect or something
7 replies
SSolidJS
Created by TheKnightCoder on 10/20/2024 in #support
Can I nest cache functions
cache wrapper mainly only used with createAsync or preload
7 replies
SSolidJS
Created by TheKnightCoder on 10/20/2024 in #support
Can I nest cache functions
Just use getAuth as a normal function without cache wrapper
7 replies
SSolidJS
Created by TheKnightCoder on 10/20/2024 in #support
Can I nest cache functions
I don't think nested cache functions work well. You can refactor it out
7 replies