You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently only React.forwardRef and React.memo are supported. If using Mobx-React, the observer HOC triggers this error and requires overrides in the file. It would be good if we could add observer to the allowed list.
The text was updated successfully, but these errors were encountered:
It seems like a valid use case to be able to allow this. However, I'd like to make the rule more lenient by default - not everyone may use the observer function from MobX.
Thus, I suggest making it opt-in by exposing a configurable list of function names that should be treated as HOCs.
I am quite busy with my university at the moment, so it may take a while for me to add this functionality. If you (or anyone else) have some spare time, feel free to raise an MR 😄
Currently only
React.forwardRef
andReact.memo
are supported. If using Mobx-React, the observer HOC triggers this error and requires overrides in the file. It would be good if we could addobserver
to the allowed list.The text was updated successfully, but these errors were encountered: