Josesito
Josesito
Explore posts from servers
SSolidJS
Created by Josesito on 4/26/2025 in #support
SolidStart behind nginx reverse proxy
Hello kind peoples, I am having trouble running SolidStart behind an NGINX reverse proxy It "sort of works", I get the page to load with most content. but there's some buggy behavior, it does not seem to load javascript nor handle redirects, which work perfectly fine if I am just running in a docker container without the reverse proxy, for one of the pages the console just spits TypeError: Cannot read properties of null (reading 'nextSibling')..., not helpful at all.... for another page with a redirect, nothing happens. So SolidStart seems to load some assets, but does not get to the WebSocket request that would occur locally. So I assume there is some data getting lost because of the reverse proxy, but I am not sure
11 replies
SSolidJS
Created by Josesito on 1/18/2025 in #support
How does `query` cache actually work?
Caches are tricky and the docs do not explain the usage details, here are some questions: - When is the cached value invalidated? - Why do I want to use this cache? - When could I run into issues with stale data by using this cache? I read through the docs already: - https://docs.solidjs.com/solid-router/reference/data-apis/query
17 replies
SSolidJS
Created by Josesito on 10/27/2024 in #support
can I import a `named export` while lazy loading the `default export`?
Not sure how lazy loading works, I want to ask if this breaks lazy loading:
export const path = "/login"
export default (function LoginScreen() {...}) satisfies Component
export const path = "/login"
export default (function LoginScreen() {...}) satisfies Component
import { path as loginPath } from "#route/login" // this import is outside the `lazy()` function, is this ok?

const routes = [{
path: loginPath,
component: lazy(() => import("#route/login")),
}]
import { path as loginPath } from "#route/login" // this import is outside the `lazy()` function, is this ok?

const routes = [{
path: loginPath,
component: lazy(() => import("#route/login")),
}]
4 replies