pacovelobs
pacovelobs
SSolidJS
Created by pacovelobs on 7/4/2023 in #support
FileRoutes props for app-wide signals
Hey there. I'm rewriting a small SPA from Yew (Rust 🦀) to Solid with SolidStart. In my Yew app, I have a bunch of app-wide properties. They're defined at the App level (equivalent of the root.tsx here). And passed to basically every pages through the routing functions. Here, the only way to do this would be to pass my getters/setters to the FileRoutes component. Which is not allowed. What would be the correct way to deal with this situation in a Solid SPA ? Thanks in advance!
P.
14 replies