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
in Todo.jsx change import { observer } from "mobx-react";
to import { observer, PropTypes as mobxPropTypes } from "mobx-react";
add const propTypes = { test: mobxPropTypes.observableArray } // rest of the code Todo.propTypes = propTypes;
Organize imports
Expected behaviour:
PropTypes as mobxPropTypes is still there and works
Current behaviour:
PropTypes as mobxPropTypes is removed even if it was used
Does this issue occur when all extensions are disabled?: Yes
I use this pattern often when using mobx because I sometimes need normal PropTypes from prop-types and the PropTypes from mobx-react. Since the names are conflicting I need to use an alias, but it then gets removed by the organize imports feature.
The text was updated successfully, but these errors were encountered:
Steps to Reproduce:
import { observer } from "mobx-react";
to
import { observer, PropTypes as mobxPropTypes } from "mobx-react";
const propTypes = { test: mobxPropTypes.observableArray }
// rest of the code
Todo.propTypes = propTypes;
Expected behaviour:
PropTypes as mobxPropTypes
is still there and worksCurrent behaviour:
PropTypes as mobxPropTypes
is removed even if it was usedDoes this issue occur when all extensions are disabled?: Yes
I use this pattern often when using mobx because I sometimes need normal PropTypes from prop-types and the PropTypes from mobx-react. Since the names are conflicting I need to use an alias, but it then gets removed by the organize imports feature.
The text was updated successfully, but these errors were encountered: