realm / realm-dart

Realm is a mobile database: a replacement for SQLite & ORMs.
Apache License 2.0
772 stars 86 forks source link

FlexibleSync Problem #1723

Closed tuphampro closed 4 months ago

tuphampro commented 5 months ago

What happened?

Realm always loads data from the server when opening the application even though there are no changes. Meanwhile, version 1.9.0 did not have that problem.

image

Repro steps

  final currentUser = await app.logIn(Credentials.anonymous());
      final config = Configuration.flexibleSync(
        currentUser,
        schemaObjects,
        path: customPath,
      );

  realm = Realm(config);
  realm?.subscriptions.update((mutableSubscriptions) {
    mutableSubscriptions.add(realm!.all<Category>());
  });

  realm?.subscriptions.waitForSynchronization();

Version

3.0.0

What Atlas Services are you using?

Atlas Device Sync

What type of application is this?

Flutter Application

Client OS and version

Windows 11

Code snippets

No response

Stacktrace of the exception/crash you're getting

No response

Relevant log output

No response

sync-by-unito[bot] commented 5 months ago

➤ PM Bot commented:

Jira ticket: RDART-1054

nirinchev commented 5 months ago

This report is insufficient to determine what the problem or what your question is.

github-actions[bot] commented 4 months ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.