angular-ui/ui-grid

Restore state timing issue

Open

#4,526 opened on Oct 15, 2015

View on GitHub
 (10 comments) (1 reaction) (0 assignees)JavaScript (5,395 stars) (2,496 forks)batch import
help wanted

Description

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.

Contributor guide