hannus
hannus
SSolidJS
Created by hannus on 11/8/2024 in #support
can I handle a group of useSubmisson?
useSubmissions returns an array, where each element corresponds to a useSubmission for each action, arranged in the order the actions were initiated. Is that correct?
8 replies
SSolidJS
Created by hannus on 11/8/2024 in #support
can I handle a group of useSubmisson?
thanks. Even if the latest submission status is pending, I can still trigger a new action, right?
8 replies
SSolidJS
Created by Mahmood on 8/28/2024 in #support
solidstart with appwrite auth
In SolidStart, redirecting to a route by throwing an error and redirecting to a route by returning have similar effects.
2 replies
SSolidJS
Created by hannus on 8/22/2024 in #support
How can I make createEffect in SolidJS execute only when the dependency variable changes, and not wh
thanks, your advice is very useful. I believe this pattern could be used in more scenarios
18 replies
SSolidJS
Created by hannus on 8/22/2024 in #support
How can I make createEffect in SolidJS execute only when the dependency variable changes, and not wh
cheers
18 replies
SSolidJS
Created by hannus on 8/22/2024 in #support
How can I make createEffect in SolidJS execute only when the dependency variable changes, and not wh
I have updated my code by your advice, it's clear. Thanks a lot. I am going to try object by createStore later.
18 replies
SSolidJS
Created by hannus on 8/22/2024 in #support
How can I make createEffect in SolidJS execute only when the dependency variable changes, and not wh
thanks, it is very useful.
18 replies
SSolidJS
Created by hannus on 8/26/2024 in #support
Modifying Signals Returned by createAsync in SolidJS: Best Practices and Alternatives
thanks. My understanding is that the value returned by createAsync is a signal, and if I want to modify it, based on the principle of unidirectional data flow, the best practice is to notify its data source that the data has been updated. Specifically, this can be done by using an Action to modify the data source. Once the data source is updated, the signal value obtained by createAsync will automatically be updated accordingly. Is my understanding correct?
4 replies
SSolidJS
Created by hannus on 8/22/2024 in #support
How can I make createEffect in SolidJS execute only when the dependency variable changes, and not wh
thanks a lot. I have never used on function, it seems like very useful. I appreciate
18 replies
SSolidJS
Created by hannus on 8/22/2024 in #support
How can I make createEffect in SolidJS execute only when the dependency variable changes, and not wh
Thanks, it works. You’ve been a great help to me. If I have more than one signal to depend on, such as value() and title(), how should I handle it?
18 replies
SSolidJS
Created by hannus on 8/22/2024 in #support
How can I make createEffect in SolidJS execute only when the dependency variable changes, and not wh
Thanks. However, it doesn’t work. The effect doesn’t execute, not only during the initial run but also when the value is updated afterward.
18 replies
SSolidJS
Created by sh1man on 8/14/2024 in #support
permission and groups
auth check function in the preload() could handle the permission in every route component. when it comes to api/package, it depends on your scenario.
3 replies
SSolidJS
Created by hannus on 7/20/2024 in #support
Confusion about Preload mechanism
got it, thanks a lot
8 replies
SSolidJS
Created by hannus on 7/20/2024 in #support
Confusion about Preload mechanism
thanks, if the function within preload has throw redirect() , is it possible to redirect before the component render?
8 replies
SSolidJS
Created by TripleSmile on 7/23/2024 in #support
How to use a resource in a structure field as a reactive signal?
const productData = {
title: "productTitle", // string attribute
price:productTitlePrice() // singal
}
const productData = {
title: "productTitle", // string attribute
price:productTitlePrice() // singal
}
10 replies
SSolidJS
Created by TripleSmile on 7/23/2024 in #support
How to use a resource in a structure field as a reactive signal?
I think you could try to createStore to create a object signal. In the object, every attribute is reactive. On the other hand, if you want to some attribute to fetch data, just create an object including the signal what you have created. For instance:
10 replies
SSolidJS
Created by icanflyit on 7/23/2024 in #support
SSR Cookies
what's more, if you wanna encrypt the cookie, you could try useSession which is a special cookie that encrypt in the server. The example and documents plz check the following link: https://h3.unjs.io/examples/handle-cookie tip: import from vinxi/http rather than h3
43 replies
SSolidJS
Created by icanflyit on 7/23/2024 in #support
SSR Cookies
I think setCookie and getCookie are useful for your scenario. Import them from vinxi/http rather than h3 because vinxi has wrapped them for better experience. Based on them, you could handle cookie within http request, and they work well with SSR of Solidstart.
43 replies
SSolidJS
Created by midnight on 7/23/2024 in #support
JWT to Cookie
I prefer to useSession. The token will be encrypted when you saved the token into the cookie which named h3 by useSession(). I think it is safer than using cookie without encrypt.
50 replies
SSolidJS
Created by hannus on 7/20/2024 in #support
Confusion about Preload mechanism
thanks. I get it. I'll be careful with console log and cache which is black box for me now 😉
8 replies