DenoDDeno
Powered by
martpetM
Denoβ€’3y agoβ€’
6 replies
martpet

Fresh: global state

Is it possible to have a global state that can be accessed from anywhere? Currently I'm passing the Request object to many deeply nested server-rendered components, because I need to read the request hostname from it. I wish there was a way I could skip passing it through props.
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Does Fresh have a global error handler?
Deno AI HelperDDeno AI Helper / help
2y ago