Дикий
Дикий
Explore posts from servers
SSolidJS
Created by Дикий on 3/20/2024 in #support
when changing a dynamic variable that contains json <For> will not be re-rendered
I have a variable createsignal and it contains json and during actions on the page it receives data from the server and through the <For> element it should be displayed every time the variable is changed but it doesn't work what to do?
155 replies
SSolidJS
Created by Дикий on 3/13/2024 in #support
How can you get the id of element body when its id is changed?
How can you get the id of body element when changing its id, is there any hooks or something like that?
7 replies
SSolidJS
Created by Дикий on 3/13/2024 in #support
How to create a reactive localstorage?
Hi, I need to create a reactive localstorage for localization on my site but I don't know how to do it, here is my attempt to make one:
const [locale, setLocale] = createStore({
locale: "en",
});
const [localeJson, setLocaleJson] = createSignal(locales[locale.locale]);
createEffect(() => {
setLocaleJson(locales[locale.locale]);
}, locale.locale);
const [locale, setLocale] = createStore({
locale: "en",
});
const [localeJson, setLocaleJson] = createSignal(locales[locale.locale]);
createEffect(() => {
setLocaleJson(locales[locale.locale]);
}, locale.locale);
but it doesn't work because when the page reloads, the value reverts to the original value
36 replies
SSolidJS
Created by Дикий on 3/5/2024 in #support
How to detect button holding in solid js?
Does anyone know how to detect a button being holding for 2 seconds and are there any libraries or built-in functions for holding gesture?
4 replies
SSolidJS
Created by Дикий on 2/20/2024 in #support
how to make two-way data transfer through components?
I need to pass a value from a child component to a parent component and back again and idk how to make it
20 replies
SSolidJS
Created by Дикий on 2/20/2024 in #support
Can't use an image without src/assets/ at the path
I have a problem why can't I use images from the assets folder if there is no src/assets/image.png at the beginning of the path?
26 replies