romanobro
vanilla js in onMount?
I got help recently about finding a way to import a vanilla javascript file as an independent source https://discord.com/channels/722131463138705510/1116600411311317032
and It worked on the initial load, but using the back button would cause many problems.
Now, I have moved to putting lots of plain js in an onMount, which is working well so far, but seems like a bad idea. Does anyone know of any issues that could be caused by that method?
to clarify, I am using a library (d3), interacting with dom elements, and using setTimeout to make a recursive call to update a slideshow. This makes it seem to me as if the onMount call never ends. Will that create an issue?
1 replies
show user data based on authorization?
Hello, I understand how I want to log users in and persist login state with localstorage but how would one show the data that is specific to them? Would every component have to render items based on a get request to the database?
2 replies
Solid newbie
I apologize, for this is really a noob question but i have been stumped for a bit, so i guess i'll ask:
How do you separate backend and frontend functions in solid? All tutorials and resources I have seen are frontend only or use backend as a service for their apps. I would like to use node.js to build an app. Is this usually done with HTTP requests? Am I missing the point of solidjs? I like the ease of use and speed that comes with solid as someone who wrote their first app with plain javascript and express, but it seems the lines have been blurred now that I want to use a framework.
4 replies