question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invoking a dialog reloads other components

See original GitHub issue

Lately I came across a very weird issue when using your dialogs in my Nuxt project. Whenever I invoke a dialog to show up, the page attempts to reload other components, such as vuetify-icons, and it often fails. I’m not sure why this is happening since components are not re-mounted, but it looks like this: BEFORE: image AFTER: image

I had originally figured it would be some artifact from developer environment, but it happens in production as well. I have re-installed vuetify-dialog with latest version and using default settings and this continues to happen on any instance of invoking something to show up, for example:

 showDialog(){
        this.$dialog.notify.success('TEST!',
          {
            position: 'top-middle',
            timeout: 5000
          })

Occasionally the icons return after a moment or two, but sometimes it just stays screwed up like that. It doesn’t affect just icons, as it attempts to reload header scripts like google tag manager, facebook pixel, etc.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ChibiChanNyacommented, Jul 2, 2019

Thanks as always @yariksav , second time you save me. I really like this lib. Confirmed all good!

1reaction
yariksavcommented, Jul 2, 2019

Please read https://nuxt-community.github.io/nuxt-i18n/seo.html#improving-performance , it’s better for perfomance set seo=false and then in each layout put code

// layouts/default.vue

export default {
  head () {
    return this.$nuxtI18nSeo()
  }
}

because this code https://github.com/nuxt-community/nuxt-i18n/blob/master/src/templates/seo-head.js works for EVERY vue component, and dialogs also. And doesn’t work correctly in occasions

Look into lauouts/default.vue at https://codesandbox.io/s/vuetify-dialog-test-53ovx

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reload components on a JDialog using JButton - java
Found this but I haven't understood how to deal with it. This is what I'm doing now: public class ConfDialog extends JDialog {...
Read more >
Solved: AEM 6.4 touch UI dialog | Reload the component dia...
I am looking something which can be achieved without closing the dialog and page refresh.
Read more >
How to Make a Modal Popup Refresh Items on the Page
Create a simple function inside the App component or any parent component rendering your modal. ... The above reload() method forcefully reloads ......
Read more >
p-dialog how to reload content on dialog load
Hi, I am using p-dialog to show some content on the screen upon request. To Achieve this I have written a component which...
Read more >
Dialogs | Android Developers
Using DialogFragment to manage the dialog ensures that it correctly handles lifecycle events such as when the user presses the Back button or ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found