Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Axe issues reported only on first page rendering but no more after page navigation #469

Open
tsaint31 opened this issue Mar 3, 2022 · 0 comments
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

Comments

@tsaint31
Copy link

tsaint31 commented Mar 3, 2022

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.

@michael-siek michael-siek added PROD: axe-core-npm TYPE: user bug Bug that was found by a user PRIORITY: moderate Moderate priority item; should be scheduled within a few weeks PACKAGE: react labels Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants