You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to make an async check for authorization before calling useSubscription to prevent excessive error-logs in the Backend.
(Of course authorization is already implemented in the connectionParams for the SubscriptionClient)
I am aware of the async limitations and suspense component when using the composition api, but I would still like to call useSubscription in the App.vue root. Is this even possible? Or is the only option to move useSubscription to a child component?
I noticed that useQuery has an option fetchOnMount which solves the same problem for queries, but an equivalent is not available for useSubscription.
The text was updated successfully, but these errors were encountered:
I have a working App.vue root using composition api:
I need to make an async check for authorization before calling
useSubscription
to prevent excessive error-logs in the Backend.(Of course authorization is already implemented in the
connectionParams
for theSubscriptionClient
)I am aware of the async limitations and
suspense
component when using the composition api, but I would still like to calluseSubscription
in theApp.vue
root. Is this even possible? Or is the only option to moveuseSubscription
to a child component?I noticed that
useQuery
has an optionfetchOnMount
which solves the same problem for queries, but an equivalent is not available foruseSubscription
.The text was updated successfully, but these errors were encountered: