-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
✋ on hold🎁 mobx-react-liteIssue or PR related to mobx-react-lite packageIssue or PR related to mobx-react-lite package🐛 bug
Description
Intended outcome:
In this old issue (#141) it states the below should work. Also In the docs it states it will be fixed in React 17.
export const MyComponent2 = observer(() => "hello2!");
MyComponent2.displayName = "MyComponent2";
Is this an issue with observer
now and/or should the docs be updated to say displayName
does not work with observer
?
Actual outcome:
Viewing "React DevTools" in CodeSandbox notice _c3
for the MyComponent2 name:
How to reproduce the issue:
https://codesandbox.io/s/mobx-displayname-reat-17-z61pb?file=/src/MyComponent.jsx
Versions
- mobx: 6.0.4
- mobx-react: 7.0.5
- react: 17.0.1
- react-dom: 17.0.1
Metadata
Metadata
Assignees
Labels
✋ on hold🎁 mobx-react-liteIssue or PR related to mobx-react-lite packageIssue or PR related to mobx-react-lite package🐛 bug