apollo79
Explore posts from serversexclude specific file from getting bundled
I'm using nanolith (https://github.com/mstephen19/nanolith) in my solid-start app for loading some work off to a different thread. However, it is not possible with this library to define and run the tasks in the same file, which I do not do in my code, but happens. Is there a way to somehow exclude the file from being bundled?
1 replies
problem with canvas
I'm having a quite weird problem currently.
I am trying to port
react-snowfall
to solid (https://github.com/apollo79/solid-snowfall) and therefore working with a canvas
.
The code is, simplified like this:
Where the createSnowFlakes
function just creates an array of snowflakes and handles config updates.
The weird thing now is, that everything gets executed, the loop works and the snowflake.draw()
methods is called, but nothing appears on the screen.
Maybe this is a problem with the context or the canvas ref? I don't get it2 replies
SolidStart render page from POST function
I have a form in
SolidStart
with method="post"
and action=""
.
To validate the form on server side, I export a POST
function.
However I am wondering how I could, if the data I got isn't valid, show the form again with the data the user already submitted (and maybe additional error messages) from this POST
function?10 replies