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
Expected
Custom menu example to work What happened instead:
Error: Expected ref to be a function, a string, an object returned by React.createRef(), or null.
I am guessing something to do with forwardRef and react router Environment
React-admin version: 3.0.0
React version: 16.12
Browser: chrome
Stack trace (in case of a JS error):
react-dom.development.js:14792 Uncaught Error: Expected ref to be a function, a string, an object returned by React.createRef(), or null.
The text was updated successfully, but these errors were encountered:
ok after hours of searching (and looking at the source of the original Menu.js) i found the problem to be the left Icon property
it seems it only accepts materialized components leftIcon={LabelIcon} wont work leftIcon={<LabelIcon/>} works
if this is the official solution update the docs and close this issue
Expected
Custom menu example to work
What happened instead:
Error: Expected ref to be a function, a string, an object returned by React.createRef(), or null.
Steps to reproduce:
Just Copy the custom menu example
I am guessing something to do with forwardRef and react router
Environment
react-dom.development.js:14792 Uncaught Error: Expected ref to be a function, a string, an object returned by React.createRef(), or null.
The text was updated successfully, but these errors were encountered: