Closed Brawl345 closed 2 years ago
Thanks for the report and for trying out this plugin. This is a bug, and once I have it fixed I'll add this code to the tests.
I think I'm going to change the implementation so it only warns if a signal is actually used past an await
, with exceptions for onMount
and a few other functions. That should cover it, I'll update you when the fix is released.
For now I hope disabling the rule for each line this affects won't be too much of an inconvenience.
Thanks, take your time, no problem :)
Got to it tonight, should be fixed in v0.4.3
. Pretty simple change. Thanks again!
Works, thanks! :+1:
Describe the bug Using "onMount()" with an async function throws:
I used the example code from the official tutorial to verify: https://www.solidjs.com/tutorial/lifecycles_onmount?solved
To Reproduce Steps to reproduce the behavior:
Expected behavior No error should be shown because it still works.
Screenshots
Desktop (please complete the following information):
node --version
: v16.13.2npm list eslint-plugin-solid
/yarn why eslint-plugin-solid
:-- eslint-plugin-solid@0.4.1
npm list eslint
/yarn why eslint
:Additional context N/A