No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Hot reload pre-hooks or disconnecting before hot reloading

    Framework
    2
    2
    72
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Alexandre last edited by

      Hello,
      I’m developing an app based on quasar 1.0.5 that uses a bluetooth connection to a device. While I code frontend (pages, vues etc) there is no problem with hot reloading and the app stays connected in bluetooth.

      However, if I change something in the store or in the boot this reloads the entire app but without disconnecting properly from the bluetooth. I then need to reboot my device to reconnect properly to it.

      Does someone has an idea on how to solve this ?

      Best,

      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @Alexandre last edited by

        @Alexandre

        So how I see the problem is that you cannot connect to your bluetooth device when the bluetooth device thinks it still has valid connections. (Because the connections are not properly disconnected)

        I presume your bluetooth connection is instantiated by the Quasar app?

        So how about this. When Quasar reloads the entire app, the boot files will also run again. What if you create a boot file that always (first) tries to disconnect any open connections with the bluetooth device, before setting up a new bluetooth connection from Quasar( I assume you do that in the boot file too).

        1 Reply Last reply Reply Quote 0
        • First post
          Last post