You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been working on a spec viewer which uses ReDoc to render the spec documentation. Basically the page has a list of files and as you select a file from the list, the page dynamically updates to have the documentation of that page without having to refresh the page.
I've found that once you have done a Redoc.init(), further attempts fail. So what I've been doing in the meantime is, when I want to refresh the spec being displayed, I replace the Redoc DOM node with a fresh <redoc/> tag and that allows Redoc.init() to work. This seems to work but there is also a bunch of errors about "Attempt to use a destroyed view" that get spat out into the console. Its not stopping the rendering from actually happening but its always good to keep the console logs clean if posssible.
Therefore is there a more "proper" way of doing a second Redoc.init() on a page? Could Redoc.init() be changed on subsequent calls to destroy everything and start again?
The text was updated successfully, but these errors were encountered:
I've been working on a spec viewer which uses ReDoc to render the spec documentation. Basically the page has a list of files and as you select a file from the list, the page dynamically updates to have the documentation of that page without having to refresh the page.
I've found that once you have done a
Redoc.init()
, further attempts fail. So what I've been doing in the meantime is, when I want to refresh the spec being displayed, I replace the Redoc DOM node with a fresh<redoc/>
tag and that allowsRedoc.init()
to work. This seems to work but there is also a bunch of errors about "Attempt to use a destroyed view" that get spat out into the console. Its not stopping the rendering from actually happening but its always good to keep the console logs clean if posssible.Therefore is there a more "proper" way of doing a second
Redoc.init()
on a page? CouldRedoc.init()
be changed on subsequent calls to destroy everything and start again?The text was updated successfully, but these errors were encountered: