Error during fnStateLoad causing inconsistent state?

Error during fnStateLoad causing inconsistent state?

nilsbungernilsbunger Posts: 1Questions: 0Answers: 0
edited February 2013 in DataTables 1.9
Hi, I'm trying to use dataTables with a fnStateLoad function set to load state from a server. I'm running into a problem: if the state returned by the server is bad, the datatables init fails (understandably). If I catch that exception, I'd like to reinitialize the table without the state. However, the table seems to be in an inconsistent state: you can't fnDestroy it (parentNode of 'null'), and you can't just initialize it again (the table is already initialized).

What's the proper way to clean up and start again in this situation?

FYI I'm testing bad data being returned by the server -- for robustness sake I want to gracefully degrade if the loaded state is bad.
This discussion has been closed.