HashtagOctothorp
HashtagOctothorp
SSolidJS
Created by HashtagOctothorp on 1/19/2024 in #support
How to refetch a "use server" function / RPC?
Wasn't clear from the docs I read. I feel like if I'm going to learn Solid proper, I need to be in the source
104 replies
SSolidJS
Created by HashtagOctothorp on 1/19/2024 in #support
How to refetch a "use server" function / RPC?
Ah
104 replies
SSolidJS
Created by HashtagOctothorp on 1/19/2024 in #support
How to refetch a "use server" function / RPC?
createResource or createAsync?
104 replies
SSolidJS
Created by HashtagOctothorp on 1/19/2024 in #support
How to refetch a "use server" function / RPC?
yep, confirmed
104 replies
SSolidJS
Created by HashtagOctothorp on 1/19/2024 in #support
How to refetch a "use server" function / RPC?
seems like createAsync needs to be within the lifecycle of a component, is my guess
104 replies
SSolidJS
Created by HashtagOctothorp on 1/19/2024 in #support
How to refetch a "use server" function / RPC?
No description
104 replies
SSolidJS
Created by HashtagOctothorp on 1/19/2024 in #support
How to refetch a "use server" function / RPC?
ah, but of course now I'm getting errors saying that computations created outside a "createRoot" or "render" will never be disposed... because it's outside the Solid lifecycle 🤦‍♂️
104 replies
SSolidJS
Created by HashtagOctothorp on 1/19/2024 in #support
How to refetch a "use server" function / RPC?
maybe it was one of those recursive dependency problems (though I don't see why it would have been)
104 replies
SSolidJS
Created by HashtagOctothorp on 1/19/2024 in #support
How to refetch a "use server" function / RPC?
¯\_(ツ)_/¯
104 replies
SSolidJS
Created by HashtagOctothorp on 1/19/2024 in #support
How to refetch a "use server" function / RPC?
lol. I tried one last thing, moving the cache definition to the same node file the RPC call is defined in, and NOW it works XD
104 replies
SSolidJS
Created by HashtagOctothorp on 1/19/2024 in #support
How to refetch a "use server" function / RPC?
which is unfortunate, as the whole point of going the RPC route was to prevent that
104 replies
SSolidJS
Created by HashtagOctothorp on 1/19/2024 in #support
How to refetch a "use server" function / RPC?
I feel like that would be easier
104 replies
SSolidJS
Created by HashtagOctothorp on 1/19/2024 in #support
How to refetch a "use server" function / RPC?
at this point... I'm about to just setup a separate API definition instead XD
104 replies
SSolidJS
Created by HashtagOctothorp on 1/19/2024 in #support
How to refetch a "use server" function / RPC?
Joy
104 replies
SSolidJS
Created by HashtagOctothorp on 1/19/2024 in #support
How to refetch a "use server" function / RPC?
import {
PINGCACHE, // string value to share the cache name
Servers, // Root Component from this component
pingStatus, // the createAsync signal
} from "~/components/Servers";
import {
PINGCACHE, // string value to share the cache name
Servers, // Root Component from this component
pingStatus, // the createAsync signal
} from "~/components/Servers";
104 replies
SSolidJS
Created by HashtagOctothorp on 1/19/2024 in #support
How to refetch a "use server" function / RPC?
yep
104 replies
SSolidJS
Created by HashtagOctothorp on 1/19/2024 in #support
How to refetch a "use server" function / RPC?
output to the browser is different
104 replies
SSolidJS
Created by HashtagOctothorp on 1/19/2024 in #support
How to refetch a "use server" function / RPC?
I'd copy the stack trace but it blows my mind that there's CSS styles prevent copying the text
104 replies
SSolidJS
Created by HashtagOctothorp on 1/19/2024 in #support
How to refetch a "use server" function / RPC?
oh sure, that's just the last point of failure
104 replies
SSolidJS
Created by HashtagOctothorp on 1/19/2024 in #support
How to refetch a "use server" function / RPC?
Cannot use 'in' operator to search for 'data' in undefined in the SolidStart server.js file
104 replies