Skip to content

How to use code that run outside of React? #9943

Closed Answered by jcubic
jcubic asked this question in Q&A
Discussion options

You must be logged in to vote

It seems that this is a bug in Docusaurs that hijack the navigation and needs to be doing some caching of the DOM to restore the view, and it breaks code that is outside of React.

I solve the issue by running swizzle on the Logo and replace <Link> with <a> tag.

If you know a better way, let me know. The navigation is a bit slower because the whole JavaScript needs to be downloaded and run again. But now it actually works.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@slorber
Comment options

@jcubic
Comment options

@jcubic
Comment options

Answer selected by jcubic
Comment options

You must be logged in to vote
1 reply
@jcubic
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants