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
In addition, why is the return value a promise and not the results property of that object? Needing to await before even being able to unsubscribe is problematic, especially in react. If i'm trying to manually create a subscription, I need to create the listener, and immediately return a function that can cancel the subscription. I can't await something inside a useEffect in react.
The text was updated successfully, but these errors were encountered:
https://pglite.dev/docs/live-queries#live-query states the return type is an object with an unsubscribe function. However, the actual request a is a promise of that object.
In addition, why is the return value a promise and not the results property of that object? Needing to await before even being able to unsubscribe is problematic, especially in react. If i'm trying to manually create a subscription, I need to create the listener, and immediately return a function that can cancel the subscription. I can't
await
something inside auseEffect
in react.The text was updated successfully, but these errors were encountered: