Retain toast even after router enter

UI Components for Vue
Post Reply
nanaaikinson
Posts: 1
Joined: 10 Jul 2020, 14:43

10 Jul 2020, 14:45

Is there a way to retain a toast even if I navigate through pages?

cagatay.civici
Prime
Posts: 18332
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

10 Jul 2020, 14:57

It should already work like this, on our showcase we remove them though via App.vue;

Code: Select all

watch: {
        $route: {
            immediate: true,
            handler(to) {
                this.$toast.removeAllGroups();
            }
        }
    },
But if you do not have something like this, they should be retained automatically. How is the case on your end?

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest