Live query doesn't emit the update even after email verification status changes

When I subscribe to the user table like so:

      const query = new Parse.Query("User");
      query.equalTo("userId", payloadRef.current.userId);

      const subscription = await query.subscribe();

      subscription.on("open", () => {
        console.log("opened");
      })

      subscription.on("update", () => {
        console.log("updated");
      });

the open event get fired, but the update event doesn’t.

I was expecting the update event to fire when the emailVerified attribute of the user changes to true.

Is that a bug or expected behavior?

I needed this feature to automatically redirect the user after email verification.

Any suggestions?

Thank you,

Try:

const query = new Parse.Query(Parse.User);

I just tried this way and got the same result. The connection is opened, but when the status changes from false to true the update event is not triggered.

(I change the status by clicking the link in the email, not manually from the table.)

The version is 3.5.1 and 5.3.3

I’m trying this from the frontend.

does it fire when you update it manually in the dashboard?

No, and I think it’s not supposed to fire on manual updates. I’ve read this somewhere on this forum.

If you are updating values via the Parse Dashboard events should fire. If you are updating values by editing them directly in MongoDB, they will not. Are results returned when you run query.find()?

Yes, I get the user.

Before verification:

After verification:

But again only the open event fired.

image