Replies: 1 comment
|
It's hard to have linters tell you that mismatches between intent and what
someone is literally declaring? Such a lint rule would be really
complicated. E.g. if the actions a.x() or z(a), where a is an observable
object, you cannot tell at a glance whether x resp z will mutate or compute.
However theoretically we could throw if an action is called from a reactive
reading context. (There might be an actual flag for that, not sure from top
of my head)
…On Wed, Oct 23, 2024, 7:37 AM Todor Andonov ***@***.***> wrote:
Just fixed a bug that was caused by an unnecessary action.bound - no state
was being modified inside the function. Instead, it was acting like a
getter that depended on an observable in the store. Subscribers were not
alerted when this observable was changed.
I was wondering if it makes sense to have an eslint rule for that?
—
Reply to this email directly, view it on GitHub
<#3951>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN4NBGX42GDK5UBKTMWKP3Z46YA5AVCNFSM6AAAAABQO7QRB6VHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZXGM2TONZUHA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Just fixed a bug that was caused by an unnecessary action.bound - no state was being modified inside the function. Instead, it was acting like a getter that depended on an observable in the store. Subscribers were not alerted when this observable was changed.
I was wondering if it makes sense to have an eslint rule for that?
All reactions