PropTypes with observableRequiresReaction check #2621
Replies: 2 comments 1 reply
-
Well, you should wrap the component to |
Beta Was this translation helpful? Give feedback.
1 reply
-
This is a known issue, propTypes are checked outside the render. You can
either use the propTypes provided by mobx-react, or ignore the warnings, or
use a type checker instead of propTypes :)
…On Fri, Nov 13, 2020 at 10:44 PM Mike ***@***.***> wrote:
Here's a codesandbox with the issue:
https://codesandbox.io/s/lucid-merkle-5cw3z?file=/index.js
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2621 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN4NBCH6Q63D7V7MIM2WYTSPWZEHANCNFSM4TVCE6IA>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hymm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried enabling observableRequiresReaction, but it's erroring on the react proptype checks. i.e.
Is there a better way of dealing with this other than wrapping the propType checker in an action?
Beta Was this translation helpful? Give feedback.
All reactions