amplify-js: Datastore.observe not work as expected when provided with criteria

Describe the bug Running locally only (without syncing the state). running few observers that should all get triggered by some update. Observer without criteria work as expected: Datastore.observe(model).subsrcibe(msg => console.log(msg)) Observers with does not: Datastore.observe(model, criteriaFunction).subsrcibe(msg => console.log(msg))

criteriaFunction is identical as used to get the data and works.

Additional context Using amplify in react native - latest version. checked on android device

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

No, I’m connecting it to AppSync, it was local only just for development and it does work as intended when configured to use AppSync. Thanks