SolidJS

S

SolidJS

Solid is a declarative reactive Javascript library for creating user interfaces.

Join

Is this possible to render a component as string in browser context ?

Hello, I saw in the discord that its impossible to use renderToString in the borwser. Is there another way to render to a string a SolidJS component ? Instead of using pure template string ?...

Solid Cache

hey @lxsmnsyc sorry to bother you. I´ve been trying your library, am I doing this correctly: ```typescript const [queryParams, setQueryParams] = useSearchParams() ...

Why useRouteData can return undefined?

In this example: ```ts export function routeData({ params }: RouteDataArgs) { return createServerData$( async ([_, id], { request }) => {...

useReducer equivalent?

Is there a useReducer equivalent? Thanks...

emmet support

Is there emmet support for SolidJS? Currently when I use it and want a class on my JSX element it will auto-complete with "className" instead of "class". Is there a setting I can change? Thanks...

Parent doesn't update view when state changes.

Problem: when the child component modifies the state of Auth, the rendering doesn't update. Auth component: ```js function Auth() {...

How to pass data from child component to parent?

We have props in solid for passing data down to child component. What about the opposite case when I need to pass some data back to the parent component? If I am not mistaken, in Vue.js there is a possibility to emit event from parent to child. How can I do it?

Unable to Render Skeleton Component

Hello ya'll, as the title says. I have a react project were i made a Skeleton component - works exactly as expected. However porting this component to SolidJS the Skeleton does not render anything unless i Here is my code:
Component...

solidjs not putting element in the correct spot.

https://derock.media/T45T7t.png https://derock.media/vTzp6m.png As you can see, for some reason, props.children is being placed outside of where it's supposed to be....

Solid's Ecosystem

Is there a list or something like that where I can find all most popular libraries to use with Solid? I mean libraries for i18n, forms, etc.

Type 'StoreState | undefined' must have a '[Symbol.iterator]()' method that returns an iterator.

I'm trying to setup a simple context provider plz help 😦 ```ts import { createContext, ParentComponent, useContext } from 'solid-js' import { createStore } from 'solid-js/store'...

i18n solid primitive with SolidStart

I'm in a snake biting its own tail situation. Using @solid-primitives/i18n, I'd like to use the /[lang]/... param to indicate I18nProvider which language to pick. ```ts export default function Root() { const params = useParams(); ...

How to check if a variable is a solid-Mutable or -Store?

Is there a way how you can detect if a variable is a createMutable/Store-proxy? It is for the purpose of working with another library's proxies.

For Component

Hello ya'll, i have a <For> component with the following error:
This JSX tag's 'children' prop expects a single child of type '(item: Iinputs, index: Accessor<number>) => Element', but multiple children were provided.
This JSX tag's 'children' prop expects a single child of type '(item: Iinputs, index: Accessor<number>) => Element', but multiple children were provided.
With the following code:...

Streaming Suspense

Is it already possible to display a loader using suspense and streaming ssr?

How to make window.localStorage reactive?

Is there any Solid primitives about window.localStoarge?

How to subscribe a signal using createEffect?

I have a code like this. I want to change v2 value to 0 if v1 value get changed. How to make this using createEffect?...

General component organization question....

Just wondering if there's a better way to organize this file:https://stackblitz.com/edit/solidjs-templates-gguy1g?file=README.md,src%2Fcomponents%2Fbook-parts%2FSlider.jsx It has a lot going on and just feels out of control to me....

How to retrieve params in `createServerAction$`?

Is there a clever way to retrieve the params in a createServerAction$ besides passing it as a parameter or FormData attribute? ```ts const [create, { Form }] = createServerAction$(async (formData: FormData) => { ... });...

Creating a global store like redux

I'm attempting to create a store to keep track of user data across the application and so far this is what I have ```js const userStore = createStore({ username: null, isLoading: true,...