How do you use rewrite in production?
modern equivalent of `createRouteData()`
createRouteData()
. I used to be able to use it have data that was refetched after a form was submitted. the closest modern equivalent I can find is cache()
and createAsync()
but that is very overkill and has an annoying (in this use case) feature where it caches for 1 second which means if a user is rapidly clicking a button which is rapidly submitting a form, changes can only be observed once a second rather than as soon as the user clicked.
Thanks....Force rerender of entire component on prop change
Push params to url without page scrolling to top
<Route path="/:page_type?/:page_url?" component={Page} />
<Route path="/:page_type?/:page_url?" component={Page} />
Console.log inside createEffect not printing...Even the setUser was called.
Keep client bundle small
Template doesn't react to property change in store of array of objects
hydration mismatch when using SuspenseList

solid func for beforeunload
(!) Failed to retrieve local session state from cookies after a successful session refresh
hello
, this exception pops up: Failed to retrieve local session state from cookies after a successful session refresh. This indicates a configuration error or that the browser is preventing cookie writes.
.
SolidJS renderToString with Hono: Undefined or 'React not defined' error
renderToString
function within a Hono server to generate SVG components, but I'm running into issues. The renderToString
call always returns undefined, or I get a "React is not defined" error (if I change tsconfig.json
to "jsxImportSource": "solid-js"
). Has anyone successfully integrated SolidJS's JSX rendering with Hono or has ideas how to do so? If so, could you share how you resolved the JSX compilation for SolidJS?
Thanks 🙂
...Client Only - Local Storage
clientOnly
because the module doesn't export an Element. What do I do?
```TSX
import { createEffect } from "solid-js";
import { createStore } from "solid-js/store";...Prevent re-rendering many components when object in store-array is updated
Reset signals when prop value changes
showFront
state of Card
when Card
's props.data
changes?
```ts
type CardProps = {
data: Card...Abort server function
Animate page transition
"use server"; RPC calls cannot access global objects
Map<K,V>
(export const mymap = ...
)and values are inserted using a server route /api/login.ts
and on SSR the value from the map is read correctly. But when i have a server rpc call the map appears empty
```ts...Issue with nested routes
/app-1/items
in the following example the Items
component is rendered correctly: https://stackblitz.com/edit/solidjs-templates-huocfk?file=src%2FApp.tsx
When clicking on Settings
in the menu, the Settings
component is not rendered. It is rendered when reloading the page though.
It seems the nested Router
is not notified about the location change.
...Create one global store with multiple createResource