-
-
Notifications
You must be signed in to change notification settings - Fork 3
Make render async #1
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or requesthacktoberfesthelp wantedExtra attention is neededExtra attention is needed
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthacktoberfesthelp wantedExtra attention is neededExtra attention is needed
At the moment, the full rendering process is synchronous. This prevents us from writing components that fetch data asynchronously, e. g. via a web request. Since markdown is only used for one-off rendering without any interactivity, we don't have to worry about loading states. Therefore we can find a simple solution for asynchronous rendering.
Describe the solution you'd like
Make
renderasynchronous, so that it renders the existing components as before.Describe alternatives you've considered
React uses hooks and state to manage asynchronous rendering. This seems to be too complicated for this usecase, though.
Additional context
This is preparation for #2