[✨] Create a lint rule for sync$()
#5596
Labels
COMMUNITY: good first issue
Good for newcomers
COMMUNITY: PR is welcomed
We think it's a good feature to have but would love for the community to help with the PR for it
STATUS-1: needs triage
New issue which needs to be triaged
TYPE: enhancement
New feature or request
Is your feature request related to a problem?
Qwik now has a new feature,
sync$()
, however, it comes with limitations. It would be great if there was a lint rule which could flag when the developer is using it improperlyDescribe the solution you'd like
A lint rule
qwik/sync$
which would flag whenever the function inside thesync$()
would close over any variables (other than browser API) and flag it.Describe alternatives you've considered
We will create a Rust check as well, but that one will not be instant, and can't provide that much detail.
Additional context
The text was updated successfully, but these errors were encountered: