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
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.
Is this an issue with
observernow and/or should the docs be updated to saydisplayNamedoes not work withobserver?Actual outcome:
Viewing "React DevTools" in CodeSandbox notice
_c3for the MyComponent2 name:How to reproduce the issue:
https://codesandbox.io/s/mobx-displayname-reat-17-z61pb?file=/src/MyComponent.jsx
Versions