React-admin: 'useListContext' is not exported from 'react-admin'

Created on 23 Sep 2020  路  1Comment  路  Source: marmelab/react-admin

I have the latest version of react-admin (3.8.5) and I want to build a custom Filter.

When I copy exactly the example from the documentation, I get this error:

Attempted import error: 'useListContext' is not exported from 'react-admin'.

I need urgent help, thank you very much!

Most helpful comment

Import it from ra-core. We're working on re-exporting everyting from react-admin

>All comments

Import it from ra-core. We're working on re-exporting everyting from react-admin

Was this page helpful?
0 / 5 - 0 ratings