Support for async plugins #674
JonasKruckenberg
started this conversation in
Feature Requests
Replies: 1 comment
-
This looks good to me. I don't have any async use-case in mind so we can just extend the hooks on demand. |
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.
-
I have this use case in my project where I have a dependency that relies on wasm and must therefore make use of promises.
My current solution consists of two parts, first I return the SlatePlugin as a promise
and then wrap the SlatePlugin instance inside a react Suspense element
Optimally there would be async support on a per-hook basis but this addresses quite a lot of pain points already.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions