Axe issues reported only on first page rendering but no more after page navigation #469
Labels
PACKAGE: react
PRIORITY: moderate
Moderate priority item; should be scheduled within a few weeks
PROD: axe-core-npm
TYPE: user bug
Bug that was found by a user
web-apis
Axe issues reported only on first page rendering but no more after page navigation
version
"next": "12.0.7",
"@axe-core/react": "^4.4.0",
"react": "^17.0.2",
node:16-bullseye-slim
Expectation: Axe issues reported only on first page rendering but no more after page navigation
I configure in _app.tsx
const isServerSideRendered = () => {
return typeof window === 'undefined';
};
if (process.env.NODE_ENV !== 'production' && !isServerSideRendered()) {
import('react-dom').then(ReactDOM => {
import('@axe-core/react').then(axe => {
axe.default(React, ReactDOM, 1000, {});
});
});
}
It works for the first rendering but not for the second exactly as described in #437 but despite the correction in 4.4.0 still have the problem.
The text was updated successfully, but these errors were encountered: