What is the point of using tunnel-rat for the commands? #460
Unanswered
kamyarkaviani
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The slash command menu is rendered in the editor inside of a
tunnelInstance.In
and then rendered in the menu withCan someone please explain why tunnel rat is used here in this way? Is it just to prevent re-rendering the editor when the command opens and closes? Or is it because of the way
EditorCommandOut
is rendered from the suggestion plugin somehow?Because it seems to me that you can just call
ReactRender
on the command component itself. What purpose does sending it through a rat tunnel serve?Beta Was this translation helpful? Give feedback.
All reactions