soixantecircuits / idle-vue

Vue component wrapper for idle-js
MIT License
125 stars 40 forks source link

Can the idleTime be set after initialisation? #44

Open osawyer opened 4 years ago

osawyer commented 4 years ago

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!

osawyer commented 4 years ago

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

snake-py commented 2 years ago

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.

gabrielstuff commented 2 years ago

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:

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

Thanks again