0

Is there a good way to reload the entire application upon (type === AUTH_LOGOUT) and make sure it completes reloading before we representing the Login page?

Thanks!

Dragon
  • 31
  • 4
  • `window.location.reload()`? – wesley6j Jun 19 '17 at 21:04
  • I tried that but it did not have a way to ensure the app is fully reloaded (no callback for window.location.reload()) – Dragon Jun 19 '17 at 21:13
  • You don't need to ensure? That is what reload does. And by the nature of it, this function can't have callback(It is a bit like reopening browser). – wesley6j Jun 19 '17 at 21:21

1 Answers1

1

Which version of admin-on-rest are you using? There was a bug prior to v1.1.0, now the state resets after a logout, and the whole app should rerender.

François Zaninotto
  • 7,068
  • 2
  • 35
  • 56