anthy
anthy
SSolidJS
Created by hcker2000 on 10/11/2024 in #support
Importing bootstraps JS
can you share some code? Also wdym by functions?
8 replies
SSolidJS
Created by anthy on 10/10/2024 in #support
Input type="reset" clears out wrapped inputs
Manually using attr:value helped, thanks!
8 replies
SSolidJS
Created by anthy on 10/10/2024 in #support
Input type="reset" clears out wrapped inputs
Oh yeah, and the question is is this a bug and if not is there a workaround?
8 replies
SSolidJS
Created by anthy on 9/9/2024 in #support
Retrigger fetcher in createResource on store change
() => { ...store } works too lol
6 replies
SSolidJS
Created by anthy on 9/9/2024 in #support
Retrigger fetcher in createResource on store change
JSON.stringify works but that trackstore thing doesnt 😦
6 replies
SSolidJS
Created by anthy on 9/9/2024 in #support
Retrigger fetcher in createResource on store change
For the context I'm simulating query params as an in memory Solid store and want to refetch data on their change. Thats why I'd like to pass the store as the signal. Conveniently it also becomes the fetcher argument
6 replies
SSolidJS
Created by anthy on 9/6/2024 in #support
How to use preloaded data
As a newcomer I thought it was the Tanstack query kinda cache
23 replies
SSolidJS
Created by anthy on 9/6/2024 in #support
How to use preloaded data
I see, in that way yeah the name is kinda misleading
23 replies
SSolidJS
Created by anthy on 9/6/2024 in #support
How to use preloaded data
so am I understanding it right its more like a deduper than a cache?
23 replies
SSolidJS
Created by anthy on 9/6/2024 in #support
How to use preloaded data
That too, also the way the preload function is presented in the docs is a bit confusing for people with react-router experience, i thought that they are the same thing while apparently they're not 🙂
23 replies
SSolidJS
Created by anthy on 9/6/2024 in #support
How to use preloaded data
okay, I think I got it, thanks a lot!
23 replies
SSolidJS
Created by anthy on 9/6/2024 in #support
How to use preloaded data
Ah, so createAsync really is just a light wrapper hah
23 replies
SSolidJS
Created by anthy on 9/6/2024 in #support
How to use preloaded data
Cool, that does simplify things, thanks! Also you mentioned that that createAsync has cache? In the company we do kinda scuffed caching implementation based on just etags, so I would want to avoid of any caching done by the framework, I just implement my own on top of fetch itself
23 replies
SSolidJS
Created by anthy on 9/6/2024 in #support
How to use preloaded data
so pretty much if I dont really care for those few extra milliseconds of waiting until the component script runs and preloading on link hover, I should just use createAsync without it?
23 replies
SSolidJS
Created by anthy on 9/6/2024 in #support
How to use preloaded data
I was under the impression that the preload function is called internally by the router when the route is being loaded?
import { Route } from "@solidjs/router";

function User(props) {
return <div>{props.data}</div>; // Promise (fulfilled)
}

async function loadUser() {
return await fetchUser();
}

<Route path="/user" component={User} preload={loadUser} />
import { Route } from "@solidjs/router";

function User(props) {
return <div>{props.data}</div>; // Promise (fulfilled)
}

async function loadUser() {
return await fetchUser();
}

<Route path="/user" component={User} preload={loadUser} />
23 replies
SSolidJS
Created by anthy on 2/20/2024 in #support
How do I use solid router in the solid playground?
Thanks!
10 replies
SSolidJS
Created by anthy on 2/20/2024 in #support
How do I use solid router in the solid playground?
No I cannot
10 replies
SSolidJS
Created by anthy on 2/20/2024 in #support
How do I use solid router in the solid playground?
A moment has been an hour and counting for me 🙂
10 replies
SSolidJS
Created by anthy on 2/20/2024 in #support
How do I use solid router in the solid playground?
This guy seems to have the same issue, although it’s something else they’re talking about in that discussion
10 replies
SSolidJS
Created by anthy on 2/20/2024 in #support
How do I use solid router in the solid playground?
10 replies