Is there a way to store traits in context for libraries to have internal context? #17
Replies: 1 comment
-
|
This is a Rust question, not a wasm-react one. Only so-called object-safe traits can be used as trait objects (e.g. Box<dyn Trait>). Unfortunately, the Clone trait is not object-safe. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Here is what I want to do, which can be done in JavaScript:
https://stackblitz.com/edit/stackblitz-starters-rhhxds?description=React%20%20%20TypeScript%20starter%20project&file=src%2FApp.tsx&title=React%20Starter
This is what I tried:
Beta Was this translation helpful? Give feedback.
All reactions