soixantecircuits/idle-vue

Can the idleTime be set after initialisation?

Opened this issue · 3 comments

It would be great to be able to change the ideTime option that you can set initially in the options. In my case, I have users that want to be able to configure the idle time-out of modals. For this, the timeout setting is stored in localStorage, and I've got it fetching from there to set on the idleTime option, but I can't see a way of setting it after the initial app load. Only solution I could think of so far is to force a refresh, but I'm reluctant to do that as I believe it's bad practice in SPAs. Appreciate the help!

Actually looks like three potential PRs for resolving this already exist! It's clear this is seen as an essential feature, and people are contributing! It would be great to get something merged in. :)
#43 #37 #41

Seems like it is not going to be merged somewhere soon, it would be great if anyone has a solution for this and would be willing to share how they did it.

HI there 👋 ! I wish you all the best for 2022. Thanks for keeping the project alive.
I know it has been a long time and I should have take the time to merge these pull request earlier.

I wanted to first clean idle-js dependency and then start working on idle-vue.
The work on idle-jshas started and I plan to release the patch tomorrow.

For Idle-vue, there are actually many issues because:

  • vue3 has been released
  • dependencies are not up to date
  • dev stack is not up to date
  • bugs have to fixed :)

Ok, back to code, hopping to give you more info tomorrow

Thanks again