saveState not working

saveState not working

allanj37allanj37 Posts: 3Questions: 1Answers: 0

I can't figure out how to get saveState to do anything. I created a simple example where the only option is "saveState: true", but it never creates any data in my localStorage.

When I tried the debug function, I see my saveState option, but the state saving feature says it's disabled.

Any help would be greatly appreciated!

https://debug.datatables.net/eyohul

Answers

  • allanj37allanj37 Posts: 3Questions: 1Answers: 0

    Anyone have any ideas on this? The option looks like it should be really simple to use, but it's just not working at all.

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin

    Can you update to DataTables 1.10.11 in the first instance please - 1.10.2 is quite old now. Also can you link to the page showing the issue if that doesn't fix it immediately?

    Thanks,
    Allan

  • allanj37allanj37 Posts: 3Questions: 1Answers: 0

    So I figured it was going to be a small/dumb mistake, but I didn't think it was going to be quite this bad.

    I was using "saveState" instead of "stateSave". Ugh! Wasted way too much time on that typo...

  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin

    Haha! I completely failed to spot that... Well spotted in the end :-)

    Allan

This discussion has been closed.