Skip to content

Expo RN and ParseLiveQuery EventEmitter error #2082

@manufunk

Description

@manufunk

New Issue Checklist

Issue Description

I updated a lot of dependencies in the last weeks and now I cannot get my application into a working state.
The problem seems to be related to the React Native Parse Live Queries but I did not find anything that could help me to debug this in a good way. I did not change anything in the config regarding Parse however I think it is due to the latest updates.

Actual Outcome

Screenshot 2024-02-04 at 15 50 55

Environment

Server

  • Parse Server version: 6.2.0

Client

  • Parse client version: 4.3.1
  • React Native 0.73.2
  • Expo 50

This is how my config is setup:

import Parse from "parse/react-native.js";
import AsyncStorage from "@react-native-async-storage/async-storage";

// Initialize Parse Backend Back4app
const parseConfig = {
  applicationId: "...",
  javascriptKey: "...",
  serverURL: "...",
  liveQueryServerURL: "...",
};

//Before using the SDK...
Parse.setAsyncStorage(AsyncStorage);
Parse.initialize(parseConfig.applicationId, parseConfig.javascriptKey);
Parse.serverURL = parseConfig.serverURL;
Parse.liveQueryServerURL = parseConfig.liveQueryServerURL;

// Enable cached user
Parse.User.enableUnsafeCurrentUser();

export default Parse;

And I do subscribe to the queries by:

parseQuerySub = await parseQuery.subscribe();

parseQuerySub.on("create", (myStuff: MyStuff) => {
    do stuff
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions