Generate static UI elements from server data only ONCE
countries
which contains file us.json
and ca.json
. For each file in folder countries
, I want to generate an <A>
element onto the Layout component. I struggle to know how to "send" this data from server to client and construct the UI, but only ONCE at startup - since the countries
folder is static
Stackblitz: https://stackblitz.com/~/github.com/bhuynhdev/solid-start-test...Do a one-time server operation upon page load, and then re-use that data
/map/[country].tsx
2. Upon loading this page the first time, I want to query database for list of country and store that data into server memory. So that subsequent navigation to the map/[country].tsx
can just index the maps
object instead of querying the db again...Component routing vs config-based routing
Client-only API called on the server side.
_jsx_runtime
it's easy-ish to adapt it from react-only to other JSX supporting libraries. (https://github.com/kentcdodds/mdx-bundler)
I've managed to nail it down for some of the libraries, unfortunately I'm stuck with Solid's one, and I'm not that familiar with Solid (https://github.com/kentcdodds/mdx-bundler/pull/236)
I've...createSignal equals: false on mutable object value
createMutable
, which I suspect is at the crux of this....Third party authentication
Calling a JSX event handler explicitly
How to filter/remove elements from an array within a Store
createStore
invocation:
```tsx
export type WeeklyTimesheetSubmission = {
readonly cards: TimesheetCard[];...Related components
Error when using protected$ from @solid-mediakit/auth.
Range input issue with Dynamic component
solid router, absolute routes?
behaviour of createAsync in hooks - why cached?
Solid routing
"Show done" in a basic todo list, and handling reactive arrays
Reactive context in built-in components
createMemo()
, etc.
Thanks....Access ref in child component when using forwarding refs
Lots of separate requests when using lucide-solid during devmode
Using useNavigate within client-only action/query
If you are inside of a cache or action function you will instead [of useNavigate] want to use redirect or reload.Does that include query/actions that only run on the client (don't use
"use server"
)?...Looping onMount