Josesito
Josesito
Explore posts from servers
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
16 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