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.
Paratron/hookrouter#106
InfoSnackbar Autohide causes rerender of Navbar and Body
InfoSnackbar usage:
UPE-Website-V2/testbank/src/App.js
Line 60 in 7f1d0bd
...and Autohide:
UPE-Website-V2/testbank/src/InfoSnackbar.js
Line 19 in 7f1d0bd
...causes rerender of:
UPE-Website-V2/testbank/src/App.js
Lines 22 to 25 in 7f1d0bd
...which causes visible blink of page, as server data fetch is repeated in any rendered child component. Very annoying.