Some Call Me Tim
vite-plugin-checker with v1 Start?
I had 'vite-plugin-checker' going with some of the earlier beta Solid Starts, but now it doesn't output anything. Is there a way to see all pending Typescript issues with vinxi etc, or any way to get plugin checker going with app.config.ts? This currently just does nothing, no errors, no output etc:
2 replies
API route in Route Group not picked up?
Migrating to RC1 caused my API routes in Route Groups (https://start.solidjs.com/core-concepts/routing#route-groups) to stop working? For a minimal repro, do a
npm init solid@latest
and create the file apiget.ts
placing it here:
navigating to /apiget
returns the proper Hello World
.
placing it here:
navigating to /blah/apiget
returns the proper Hello World
.
placing it here:
navigating to /apiget
returns a 404 now, whereas in the v.3 version, it worked and would return the proper API response.9 replies
How to output raw HTML with SSR Start?
I get a raw html string back from an API and want to just plop the contents before the closing <body> tag. I can do
<span innerHTML={apiresponse}/>
and it does output the proper HTML, but the HTML contains <script>
tags, and needs to be attached to the body. I can't have the span/div/whatever in there.
And doing
just renders it as a string.4 replies
Getting the full domain/url server side
I have a multi tenant SaaS where clients CNAME their own domains to my app. I need to get the domain / url they're using in order to get the correct data from the DB server side. How can I do this?
11 replies
Outside a createRoot error when multiple signals in a prop?
Can someone clever give me a quick rundown as to why button 1 generates a warning? Doesn't it just evaluate to boolean anyways?
https://playground.solidjs.com/anonymous/d5fe0e41-701e-4360-b991-867f9e57811f
6 replies
Solid PointerEvents, Firefox, RequestAnimationFrame and OffsetX/Y
Here's one that took up a bit of my afternoon after I wrote a RAF debouncer.
Does Solid 'do' anything with events, like React does, or are they simply browser events? If you do an
addEventListener
on an element for pointermove
, and place these in the handler:
In Firefox you'll get
in all other browsers, you'll get what you'd expect.
Is this a Firefox bug, or could it possibly be something solid is doing3 replies
Simple SSR server redirect not working
I've found a few similar questions with auth redirects, and I thought I've ticked all the boxes, but I still can't get a server redirect happening as soon as there's an await.
Everything works, response is logged properly, but the <div> still loads. As soon as I remove the fetch, the redirect works. I've tried with/without <Suspense>, reading/not reading the routeData, throwing or returning the redirect.
To replicate,
- create a new solid start typescript/tailwind project.
- create blah.tsx in /routes and paste in:
- navigate to
http://localhost:3000/blah
, see the response logged, and also see the forbidden <div>
with no redirect. What am I missing!?24 replies