Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difficulty dynamically setting idleTime #37

Open
SimonFM opened this issue Feb 12, 2019 · 3 comments
Open

Difficulty dynamically setting idleTime #37

SimonFM opened this issue Feb 12, 2019 · 3 comments

Comments

@SimonFM
Copy link

SimonFM commented Feb 12, 2019

Hi!

I'm trying to set and get the idle time from a propety we've stored in our own vuex store and we've run in to a road block.

I want to try something like this, but whenever I try, the idleTime property is not available in vuex, where is this stored?

Is it possible to change the idleTime property during runtime or is it only during mounting the App component that it can be 'hot-reloaded'?

//IdleTime setup:
import Vue from 'vue';
import IdleVue from 'idle-vue';
import store from '@/store';

Vue.use(IdleVue, {
    // idleTime: 15000, // unable to change when un-commented
    store
});

//Store - different file
const state = {
    idleVue: {
        idleTime: 5000,
        isIdle: true
    }
};

export default {
    state
};```

@ICiscoStu
Copy link

any comment on this devs? I'm trying to do the same to no avail :(

@mohammealiamin
Copy link

Same problem here

@snake-py
Copy link

snake-py commented Jan 5, 2022

I want to do the same - is there a workaround for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants