`useSession()` unexpectedly changing
useSession()
and I'm not sure how to articulate my issue. I have some routes protected by a getAdmin()
query, redirecting the visitor if is not logged and not admin. The process is working, and the session is supposed to be valid for 14 days. However, after 1 click, or after n clicks – it varies, it does not work anymore.
I noticed in the request header in my browser that the cookie value is changing when it happens: from cockpit=Fe26.2**78859073ec...
(the valid/logged cookie) to cockpit=Fe26.2**1be0589ce4be
(the invalid/blank cookie) without specific reasons.
What I noticed though is that the cookie is changing due to the response of the admin layout route as shown in the screenshot....
type augmentation in monorepo with turbo-repo

Complex createResource management
const ws = useWebSocket();
that:
- when called on the server side, initializes a WebSocket connection to another server and returns a server side wrapper to the WebSocket ~ must be waited and cached
- when called on the client side, initializes a WebSocket connection to the SolidStart server and returns a client side wrapper to the WebSocket ~ must be cached
- when the user session id changes, the connection must be closed if the id becomes undefined or create a new one if the id is not the same as the previous one
- the wrapper contains the same functions on the server side and client side, allowing it to be used inside other resources...SolidStart Meta not updating
abort `"user server"` function call
"use server"
function? behind the scenes they're just fetch()
es right? if so is there some way to pass though an abort signal?
thanks....Unable to provide context to children
createSignal with preexisting data store?
createSignal
; how can I add it in my data.tsx
file please?
The timer (while burning) should update the current state to empty when the fuel runs out to 0.
TIA...Solid Start does not load images on load event?
Problem with text that jumps lines CSS

Post CSS with Solid Start
Impossible to build fresh Solidstart

Solid MotionOne, how to animate presence in list (using For)
SolidJS Stores + SortableJS - Weird update bug at runtime | but data is correct.
reconcile
. I'm thinking it's because SortableJS seems to perform updates on the DOM elements outside of SolidJS's knowledge so maybe it's just what it is?...minified UI library package code calling undefined map
Wrapping SolidStart: JSX is an unknown file extension
Unexpected behavior when dealing with stores (createStore)
{data.user ? <A href={`/years/${data.user.position || "fy"}`}>Begin studying</A> : <A href="/login"><FaBrandsMicrosoft /> Login</A>}
{data.user ? <A href={`/years/${data.user.position || "fy"}`}>Begin studying</A> : <A href="/login"><FaBrandsMicrosoft /> Login</A>}
<style/> inserted above the component (unwanted)solidstart SSR

Registering API Endpoints on SolidStart
FileRoutes
. My goal is to fully control the paths manually instead of using the file-based routing system.
I know it’s possible to do this using a middleware like so:
```ts...Pattern for "sticky" searchParams?
searchParams
that I would like to be "sticky" over route changes? I know I could use the current searchParams to contruct the href
for many of the links on the page, but I'm wondering if there is a common pattern for this?
Thanks....How to use query.set (prev cache.set) to mutate async data for optimistic updates?
query.set
to mutate async data for optimistic updates.
it works for async data from createAsync
that’s reactive to param change. however, when i manually revalidate the data (either by calling revalidate somewhere, or revalidating from an action), it fetches fresh data rather than using the query.set i called earlier
when should i use query.set
if i’m going use revalidate()
in order get the data? calling revalidate is the only way to get the data as my query isn’t reactive to a param change...