-
Type: Task
-
Resolution: Works as Designed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Realm React
Hi,
i want to know whether realm-react's RealmContext can return realm like
const realm = await Realm.open({
path: "realm-files/myrealm",
schema: [TaskSchema],
});
like const realm.
So that i can use in class. i want to use the realm in dataManager, where i do business logic there and save in regular fashion like
realm.write(() => {
task1 = realm.create("Task", {
_id: 1,
name: "go grocery shopping",
status: "Open",
});
doing all logic in function component making file bigger.
so that i can use useQuery for fetching and listening the data , useRealm for small changes as hooks in function component.