const config = {
schema: [Task.schema],
sync: {
user: user,
partitionValue: `true`
}
};
console.log(config,'config');
Realm.open(config).then((projectRealm) => {
realmRef.current = projectRealm;
const syncTasks = projectRealm.objects("work_plan");
console.log(syncTasks,'syncTasks');
let sortedTasks = syncTasks.sorted("created_on");
console.log(sortedTasks, 'sortedTasks');
setTasks([...sortedTasks]);
sortedTasks.addListener(() => {
setTasks([...sortedTasks]);
});
});
See my code, i mentioned path in config but it’s not woked
Thank You