Skip to content

Watch hookrouter issue for updates #11

Description

@quasimik

Paratron/hookrouter#106

InfoSnackbar Autohide causes rerender of Navbar and Body

InfoSnackbar usage:

showInfoBar('success', 'Login Success!')

...and Autohide:

<Snackbar key={'info-snackbar'} open={open} autoHideDuration={1000} onClose={handleClose}>

...causes rerender of:

<>
<Navbar token={authToken} apiUrl={apiUrl} authCB={authCB} />
<Body token={authToken} apiUrl={apiUrl} authCB={authCB} />
</>

...which causes visible blink of page, as server data fetch is repeated in any rendered child component. Very annoying.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions