Replies: 1 comment 1 reply
-
Yes, that has come up and would like to have a solution. If you've got suggestions, please share! Ideally we can find a way to prevent the router from forcing all of its data () types to be wasm_bindgen'd by the end-user... but I'm not sure how to go about this. In order to share the router between requests, I'd assume it needs to be assigned to something on the JS globalThis? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When looking through the project and examples, the
Router
is often used in themain
function that is annotated with#[fetch]
. This causes the router to be created for each request. Have you considered a way to split this so that there is an initialization phase?Beta Was this translation helpful? Give feedback.
All reactions