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.
7 replies
How to auto import on save?
This doesn't work:
{
"deno.enable": true,
"deno.lint": true,
"deno.unstable": true,
"editor.defaultFormatter": "denoland.vscode-deno",
"deno.import_intellisense_origins": {
"https://deno.land": true
},
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.addMissingImports": true,
"source.organizeImports": true,
"source.fixAll": true
}
}
2 replies