marmelab / admin-on-rest-demo

Source of the admin-on-rest react.js demo, using a dummy REST service powered by FakeRest
https://marmelab.com/admin-on-rest-demo/
331 stars 181 forks source link

Cannot switch from the menu bar #6

Closed youknowone closed 7 years ago

youknowone commented 7 years ago

Once I click a menu on the bar, it is not switchable to another one.

traceback:

Uncaught (in promise) Error: removeComponentAsRefFrom(...): Only a ReactOwner can have refs. You might be removing a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).
    at invariant (invariant.js:44)
    at Object.removeComponentAsRefFrom (ReactOwner.js:82)
    at detachRef (ReactRef.js:32)
    at Object.ReactRef.detachRefs (ReactRef.js:84)
    at Object.unmountComponent (ReactReconciler.js:78)
    at ReactCompositeComponentWrapper.unmountComponent (ReactCompositeComponent.js:418)
    at Object.unmountComponent (ReactReconciler.js:79)
    at ReactCompositeComponentWrapper.unmountComponent (ReactCompositeComponent.js:418)
    at Object.unmountComponent (ReactReconciler.js:79)
    at Object.unmountChildren (ReactChildReconciler.js:146)
fzaninotto commented 7 years ago

Can't reproduce this issue. What is your browser?

youknowone commented 7 years ago

Chrome 56. I have no problem when following your tutorial only with admin-on-rest, but only with the demo.

fzaninotto commented 7 years ago

Still can't reproduce, with the same browser. What's your platform?

Also, are you using a checkout and a local build, or https://marmelab.com/admin-on-rest-demo/ ?

youknowone commented 7 years ago

I made a checkout: git clone https://github.com/marmelab/admin-on-rest-demo

fzaninotto commented 7 years ago

Does the problem occur for you in https://marmelab.com/admin-on-rest-demo/ ?

youknowone commented 7 years ago

No problem there.

fzaninotto commented 7 years ago

Can't reproduce, it must be due to your code. Closing.