SolidStart - How do I build and start server in different directory?
npm run build, a dist folder w/ content is created. If I move the dist folder into another directory, I have to copy the package.json file and npm i --omit=dev in the new directory for it to run without errors.
My confusion is why I'm having to manually copy the package.json file?
Is this the correct way to do it, or am I misunderstanding?
...Network issues with Solid
How do I lazily load stylesheets for different pages
Trigger animation using Motion One for Solid
animation.play() method, but I don't see how to do the same think using Motion Solid.
The problem I'm trying to solve is that I'm using Motion in a component, but the animation does not play when I pass that component to a second component as a child (props.children) and try to render it in the second component....Accessing parts of a Store (sub store, substore)
data: T[] and setter: SetStoreFunction<T[]> . This is all fine when passing in a complete store as created by createStore(...) but breaks down if I want to pass a part around:
e.g.
```tsx
<Foo...UND_ERR_REQ_CONTENT_LENGTH_MISMATCH error when navigating to index route
Pass prop into style={{}} on hover
}...
Global style tags get added before page is actually visible
<Style> tag in a layout, but the actual route takes a long time to load, the Style tag will still render even when the rest of that route is not. Here's the repro: https://github.com/nonphoto/solid-test-global-page-stylesControl when child component is mounted
Client only component (or client only createResource)
createResource to use suspense / error boundaries (the browser check PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable() returns a promise.
...SolidStart on Plesk
Plesk "panel"?
I have to specify a file to execute, would that just be dist/server.js?...Best practice working with reactive values inside context provider
a={a()} to Child, and access props.a - a is reactive.
If I wrap the context value in a function and treat context as Accessor<OriginalContextValue> - it's reactive.
If I use a store it's reactive too (but the update needs to be done differently)....Trigger same API call with different payloads in parallel using CreateResource
export const TriggerAPI = () => {
const [dummy] = createResource(getPayload, fetcher);
return dummy;
};...esm.sh & router
Subscribe to
feedback
const [store, setStore] = createStore({fb: [0,1,2]});
const feedback = store.fb;
const [store, setStore] = createStore({fb: [0,1,2]});
const feedback = store.fb;
Strange React not defined error
I get `Invalid left-hand side in assignment expression.` when I assign a value.
selectedRate inside the onClick
even with the arrow function removed, I still get an error.
```jsx
const ratings = [1, 2, 3, 4, 5];...For component not displaying values
Component is called twice when using Suspense, createResource and solid router