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
Not sure what the cause is yet, but I've written local playwright tests that verify that doneEach runs twice on initial page load for a particular test (so the case is isolated).
This is unexpected. For most sites/tests, doneEach runs once, but in some rare case it runs twice. I have experienced this before in practice too.
This might possibly explain what I was seeing in #906 with scripts running twice
What is current behaviour
doneEach runs twice on initial render sometimes.
What is the expected behaviour
It should run one time all the time, or twice all the time. Or something similar, but right now there is something that seems inconsistent.
Other relevant information
Bug does still occur when all/other plugins are disabled?
Your OS: Linux
Node.js version: 17
npm/yarn version: 8
Browser version: Chrome
Docsify version: 4.12.2
Docsify plugins: Added a plugin in docs/index.html to log, and log happens twice.
Please create a reproducible sandbox
Not sure how yet.
Mention the docsify version in which this bug was not present (if any)
Bug Report
Steps to reproduce
Not sure what the cause is yet, but I've written local playwright tests that verify that
doneEachruns twice on initial page load for a particular test (so the case is isolated).This is unexpected. For most sites/tests, doneEach runs once, but in some rare case it runs twice. I have experienced this before in practice too.
This might possibly explain what I was seeing in #906 with scripts running twice
What is current behaviour
doneEachruns twice on initial render sometimes.What is the expected behaviour
It should run one time all the time, or twice all the time. Or something similar, but right now there is something that seems inconsistent.
Other relevant information
Bug does still occur when all/other plugins are disabled?
Your OS: Linux
Node.js version: 17
npm/yarn version: 8
Browser version: Chrome
Docsify version: 4.12.2
Docsify plugins: Added a plugin in docs/index.html to log, and log happens twice.
Please create a reproducible sandbox
Not sure how yet.
Mention the docsify version in which this bug was not present (if any)