marcusbuffett
Handling of sensitive information from the front end
in general my approach to this stuff is it's fine that clever users can figure out what your admin UI looks like. As long as they can't actually use it because none of the actions will go through for them on the backend. It would be very difficult to provide admin capabilities in a web app without exposing the code for those capabilities to all users. Best you can do is probably just make it harder for users to discover
3 replies
Having trouble implementing a stack of views because of the lifecycle of <Dynamic>
Ah okay so here's the difference. If there's no view below the current view, the Show callback approach works fine, but when there's a view below, there's the same issue: https://playground.solidjs.com/anonymous/3928f3ef-8155-4e14-beb0-16ed515a916b
14 replies
Having trouble implementing a stack of views because of the lifecycle of <Dynamic>
yeah I went down a similar route, that solves the undefined props problem, but leaves another problem (which is present with the non-Show approach too), where when you add a second view, the first view gets called with the new view's props one time
14 replies
Checking if children exists breaks refs
I really gotta read docs more https://www.solidjs.com/docs/latest/api#children
That being said, this was surprising and took me hours to figure out, would be great to have some sort of warning for this if possible
3 replies
Can Solid Start export a build folder that would be compatible with Capacitor?
Got so excited when I saw this, but even if I include that, when I run & preview, I get this error:
$ROUTE_LAYOUTS is not defined
, which is the same as when I run without ssr: false
4 replies
Is there an easy way to render React inside Solid?
so I was thinking something like this?
The react include seems to work, as solid stuff keeps working with that included, but there doesn't seem to be an
include
/exclude
option for the solid start plugin?11 replies
Is there an easy way to render React inside Solid?
also huge thank you for the awesome framework, I've been re-writing my site chessmadra.com in it and it's been such a breath of fresh air, particularly the performance (there's a chessboard that requires snappy updates, solidjs updates were 20x faster than react native), and the state management stuff. Was really cool to replace zustand/immer with creatStore/produce, which slotted in perfectly. JS bundle size is half what it was, and it's sweet how often the answer to "how do I do X in solid" is just like "a variable", or "a plain function", to replace all the
useCallback
/useMemo
/useRef
/etc. Haha sorry for the rant, just been so much fun11 replies
Is there an easy way to render React inside Solid?
ah interesting, yeah so I can get some react rendering by doing createElement manually, but there's a lot of jsx in the sub-components that
Index
renders, so I guess I'll have to figure out how to get Vite to use the solid plugin for some files, and the react plugin for others? Does that sound about right?11 replies