Ho-kage
Ho-kage
Explore posts from servers
SSolidJS
Created by Ho-kage on 11/10/2024 in #support
Action triggering revalidation without cookie
Just an update for anyone that is curious. I started a new project to try and replicate this issue more simply so that I could get someone to help or look into it further. The issue no longer occurred. The difference? In the latest version of solid router 'cache' is deprecated and 'query' is the replacement. This issue doesn't happen with query. So upgrading to the latest version and switching to query resolved the issue that I had. Happy days! I actually went so far as trying to read the source code for useAction to see what was going on under the hood 🥲
3 replies
SSolidJS
Created by Ho-kage on 11/10/2024 in #support
Action triggering revalidation without cookie
I worked around this by disabling revalidate in the response and then manually calling revalidate on the client... Seems like a potential bug to me.
return json({ success: true, error: "" }, { revalidate: "none" });
return json({ success: true, error: "" }, { revalidate: "none" });
const onSave = () => {
setShowEditForm(false);
revalidate([getCategoryById.keyFor(params.id)]);
};
const onSave = () => {
setShowEditForm(false);
revalidate([getCategoryById.keyFor(params.id)]);
};
3 replies
SSolidJS
Created by Ho-kage on 10/18/2024 in #support
SolidStart 1.0 and Deno 2.0
No description
17 replies
SSolidJS
Created by Ho-kage on 10/18/2024 in #support
SolidStart 1.0 and Deno 2.0
@Tegan that's cool and all but can you get it to work with solid start?
17 replies
SSolidJS
Created by Ho-kage on 1/9/2023 in #support
Loading google fonts
Thanks for the response @.high1 , I appreciate it.
93 replies
SSolidJS
Created by Ho-kage on 1/9/2023 in #support
Loading google fonts
@.high1 What would be your recommendation?
93 replies
SSolidJS
Created by Ho-kage on 1/9/2023 in #support
Loading google fonts
I solved it by using an @import rule in the root.css instead. Using the <Link> component to add the font is definitely not working.
93 replies
SSolidJS
Created by Ho-kage on 1/9/2023 in #support
Loading google fonts
I put it in the root.tsx file in the <Head> element
93 replies