vue-chimera icon indicating copy to clipboard operation
vue-chimera copied to clipboard

Trying to disable API call when page is loaded

Open alejandroguille opened this issue 3 years ago • 0 comments

The problem is that "itemOnly" runs when the page loads.

export default {
        chimera: {
            items () {
                return {
                    url: '/items',
                }
            },
            itemOnly() { //<----- here: I don't want it to run when the page loads.
                return {
                    url: `/items/${this.itemSelected}`,
                }
            },
        },
        data () {
            return {
                itemSelected: null
            }
        },
        methods:{
        },
        mounted(){
        }
    }

Thank you for your contribution to the community.

alejandroguille avatar Mar 16 '21 19:03 alejandroguille