angular-ui/ui-grid

Restore state timing issue

Open

#4526 aperta il 15 ott 2015

Vedi su GitHub
 (10 commenti) (1 reazione) (0 assegnatari)JavaScript (2496 fork)batch import
help wanted

Metriche repository

Star
 (5395 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

When is it safe to call restore described here? http://ui-grid.info/docs/#/tutorial/208_save_state

On page load, restore only works properly if I add a delay. But how do I know what the delay should be? Could someone please define when it is safe to call restore? At least then I can check if it is safe every 500ms or so, until it is safe to call restore.

Thank you.

Guida contributor