SolidJS

S

SolidJS

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

Join

deferStream does not work

```tsx import { createAsync, Navigate, query } from "@solidjs/router"; const getShouldRedirect = query(async () => { "use server";...

How to test actions?

I'm using vitest in a SolidStart project. I'm trying to create tests for an action and haven't been able to figure it out or find any info on it. My current guess is that I need to automate/UI Test a form in a route, but thought I would ask before using more time by guessing....

Unable to test component lib locally, No "JSXS" module

index.js:1 Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/solid-js_jsx-runtime.js?v=4b49b76d' does not provide an export named 'jsxs' (at index.js:1:227)
index.js:1 Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/solid-js_jsx-runtime.js?v=4b49b76d' does not provide an export named 'jsxs' (at index.js:1:227)
Hi, i want to test my component lib locally so i installed it in my project with the link command, i bundled the solid-js components with tsdown...
No description

Tanstack virtual

I have been trying to recreate this infinite scroll example https://tanstack.com/virtual/latest/docs/framework/react/examples/infinite-scroll , but I am really blocked, it is 100% skill issue so my use I have explained in the code block for better context https://www.notion.so/1d693fabeac180c6af04ead686825ff3?source=copy_link This really got me scratching my head and I cant think of a way to tackle it , any help will be appreciated...

Form submit with SolidStart

Hello everyone, i am following the docs from https://docs.solidjs.com/solid-router/reference/data-apis/action for using a formdata action (server) , but I get the following error. Can anyone point me to the right direction here?...
No description

How to bundle components into a package with tsup

Hi, new to making library stuff, I have a list of components/ + index.ts file index.ts exports most of the components, so I'd want ```jsx...
No description

Storybook MDX Needing React?

Senior dev back in the FE world after some time in API-Land. I am using SolidJs with Storybook. I would like to write some Doc stuff using MDX, but it seems Storybook really wants to render all JSX as React JSX?
Has anyone setup Storybook w/SolidJS and used MDX docs properly?...

use directive not working

I was learning this https://www.solidjs.com/tutorial/bindings_directives but when i try use directive locally, it doesnt work. Do i need to enable things?...

How to make components with multiple global states

```html <Dropdown> <DropdownTrigger> abc <DropdownTrigger> <DropdownContent> FLOATING DIV </DropdownContent> </Dropdown>...

How to modify props of children?

In react i was using CloneElement, how to achieve this in solidjs? {props.children[0]} i want to add onclick method to this...

Idiomatic way to async update a signal through api call

I'm trying to async'ly update a value that's displayed in a couple places on the page. I'm looking for the most idiomatic/straightforward way to have a signal (or something that looks like one and is reactive) that I can use to display the value, update the value, and get the current state of the async update request. I've looked at createResource, query, and createAsync and none of them seem like natural fits, primarily because they are oriented around looking up an object from some key or other object, not providing a notion of having an object that can be updated. Maybe I'm totally wrong there, but I've tried a couple implementations and they didn't feel right....

Stream SSR & BFF with full SPA transitions

Hey! Question about implementing :solid: SSR & BFF with full SPA transitions. Pls, help 🙂 Have a classic BFF with file-based routing on Fastify....

Modular Forms with SolidStart

I'm trying to use Modular Forms in my SolidStart application but am unable to get the form to submit. I've had it working before, submitting properly so trying to debug what is causing the issue now. Thank you ```typescript export type CreateApplication = { title: string;...

umd bundle for solidjs

I want to render solidjs components in the browser without builder step. For React I do it like this with babel standalone:
<head> <script src="https://cdnjs.cloudflare.com/ajax/libs/react/17.0.2/umd/react.development.js" crossorigin></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/17.0.2/umd/react-dom.development.js" crossorigin></script>...

Server Functions cannot be nested in other blocks or functions

I just tried to upgrade to SolidStart 1.1.x. I started getting the Server Functions cannot be nested in other blocks or functions everywhere. I read this post by @Atila ....

Rendering a component at a specific target during runtime

This works so far, no issues with it right? ```jsx const createToast = () => { let div = document.createElement("div");...

How to make props reactive?

Hi why isnt the props reactive there, in Btn component? I hope i dont have to use a module for this now :/ ```jsx import { render } from "solid-js/web"; import { createSignal } from "solid-js";...

Solid Element how to render children

``` customElement("x-component", {}, (props, { element }) => { return ( <button> {props.children} /* This? */...