andahendriksen
andahendriksen
SSolidJS
Created by andahendriksen on 1/16/2025 in #support
Have anyone gotten ts particles to work in solid?
No description
4 replies
SSolidJS
Created by andahendriksen on 12/11/2024 in #support
Setting infinitely deep store?
I'm building a website builder, and my model looks like this:
type Element = {
elements?: Element[]
content?: Content[]
}
type Element = {
elements?: Element[]
content?: Content[]
}
Then I have a store like this:
const [pageStore, setPageStore] = createStore<Element>()
const [pageStore, setPageStore] = createStore<Element>()
How would I go about setting the content in the nth depth, without knowing how deep it is?
setPageStore('elements', 4, 'elements', 2, 'elements', 8, 'content', 0, 'html', '<h1>Hello World!</h1>')
setPageStore('elements', 4, 'elements', 2, 'elements', 8, 'content', 0, 'html', '<h1>Hello World!</h1>')
Can I do some sort of loop inside the setPageStore?
31 replies
SSolidJS
Created by andahendriksen on 9/19/2024 in #support
Push params to url without page scrolling to top
I have a route that looks like this:
<Route path="/:page_type?/:page_url?" component={Page} />
<Route path="/:page_type?/:page_url?" component={Page} />
When page_type and page_url is available, a popup appears. But when the url changes, the page scrolls to the top. How do I avoid that? I've tried:
<A href="/album/the_album_url">View album</A>
<A href="/album/the_album_url">View album</A>
<div onClick={() => navigate("/album/the_album_url")}>View album</div>
<div onClick={() => navigate("/album/the_album_url")}>View album</div>
4 replies
SSolidJS
Created by andahendriksen on 9/4/2024 in #support
Will my "product" experience downtime when I publish my "codebase"/"admin panel"
No description
1 replies
SSolidJS
Created by andahendriksen on 3/18/2024 in #support
Bundle lazy load
No description
8 replies