Skip to content

Difficulty dynamically setting idleTime #37

@SimonFM

Description

@SimonFM

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
};```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions