React-admin: state.admin.loader is always greater than 0

Created on 5 Sep 2020  路  2Comments  路  Source: marmelab/react-admin

Note: I don't have the right to create a StackOverflow question. Kindly check out this here.

What you were expecting:
Once the app is loaded, the state.admin.loader should be 0.

What happened instead:
The state.admin.loader is always 6 in my case

Steps to reproduce:

  • Create the app as custom

  • The <LoaderIndicator /> is always loading in the custom MyAppBar.

Environment

  • React-admin version: 3.7.1
  • Last version that did not exhibit the issue (if applicable): N/A
  • React version: 16.9.0
  • Browser: chrome
  • Stack trace (in case of a JS error): N/A
needs more info

Most helpful comment

I will close this. This is my bad the redux-persist persists the admin reducer which causes the problem.

All 2 comments

Thanks for reporting this. Please provide a sample application by forking the following CodeSandbox (https://codesandbox.io/s/github/marmelab/react-admin/tree/master/examples/simple).

I will close this. This is my bad the redux-persist persists the admin reducer which causes the problem.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

samanmohamadi picture samanmohamadi  路  3Comments

pixelscripter picture pixelscripter  路  3Comments

rkyrychuk picture rkyrychuk  路  3Comments

Dragomir-Ivanov picture Dragomir-Ivanov  路  3Comments

mbj36 picture mbj36  路  3Comments