handling (http) errors with createResource
fetchUser
function to throw on non-ok:
```typescript...Can you use hooks conditionally?
useContext
, etc.) in SolidJS conditionally, like after a guard clause, or is it like React, where you cannot?
Thanks....use createMemo outside a component
Deploy
is solid-start dev server broken?
Cache-Busting with solid.js
What is the timeout of 'use server' functions?
Cache server variable separately in db, server, front-end
isDbLocked
.
I would then like the front end to be able to read this server-side variable to disable some UI elements.
An admin should then be able to change this variable through the UI. Which in turn tries to update the database. If successful, it updates the server-side variable, and thus the front end too (maybe makes a new explicit request here to update it).
...permission and groups
[BUG?] Router: `isRouting()` immediately returns `false` when transition is not completed
isRouting
changes immediately from true
to false
if transition happens on the same page (for instance, when I change query params and createAsync looks at these params), so isRouting becomes false when there's no new data yet. Is it intended behavior? isRouting
works as expected (waits until the data comes) when the route is changing.
```tsx
// pseudo code:
const isRouting = useIsRouting();...Solid Router - Lazy import section of site in one bundle / lazy add routes
Help with creating a builder pattern for main renderer
render
function.
I think I have it working with runtime behavior, but the type definitions aren't quite right and was hoping I could get some feedback on it.
Implementation
```tsx...Export variable
const [next, setNext] = createSignal(false);
export {next}
If I export a variable like next it's exported as promise
How can I export variable like a variable?...Solid Form
solid-form
for the first time, but I'm facing this error:
```
[vite] Error when evaluating SSR module src/routes/contactos.tsx?pick=default&pick=$css: failed to import "solid-forms"
|- /node_modules/.pnpm/solid-forms@0.4.8_solid-js@1.8.19/node_modules/solid-forms/dist/public-api/index.module.js:1...Override component events
onContextMenu
in a lot of components. Is there anyway to override and apply custom logic to that event without changing much code?
<div onContextMenu={...}></div>
<div onContextMenu={...}></div>
onContextMenu
event fires when you press and hold on an element. on Safari mobile, It doesn't work, so I have to apply custom logic. But currently I have a lot of components where I have already used onContextMenu
. Is there anyway to apply custom logic to onContextMenu
without changing much code?...Mutate a Resource after fetch efficiently when using <For>
Hydration problem in Solid Start
JSX onWheel not being called.
server functions and ssr, how to get client headers during ssr when calling server functions