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

Allow multiconditional !import.meta.ev.SSR statements #158

Open
gracebrack opened this issue Jun 27, 2024 · 0 comments
Open

Allow multiconditional !import.meta.ev.SSR statements #158

gracebrack opened this issue Jun 27, 2024 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@gracebrack
Copy link

@lwc/lwc/no-unsupported-ssr-properties does not recognize when there is a multi conditional check with !import.meta.ev.SSR.

Example: This will have an error even though it has the correct check in place

if (!import.meta.ev.SSR && randomOtherCheck ) {
  this.dispatchEvent(someEvent);
}
@nolanlawson nolanlawson added the kind/bug Categorizes issue or PR as related to a bug. label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants