Skip to content

DataStore not syncing backend changes created via Amplify Studio #14572

@yunusyuksel

Description

@yunusyuksel

Before opening, please confirm:

JavaScript Framework

React Native

Amplify APIs

DataStore

Amplify Version

v6

Amplify Categories

api

Backend

Amplify CLI

Environment information

Details
# Put output below this line
 System:
    OS: macOS 15.6.1
    CPU: (14) arm64 Apple M3 Max
    Memory: 505.58 MB / 36.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 24.1.0 - /opt/homebrew/bin/node
    Yarn: 1.22.22 - ~/Readabit/node_modules/.bin/yarn
    npm: 11.3.0 - /opt/homebrew/bin/npm
    bun: 1.2.19 - ~/.bun/bin/bun
    Watchman: 2025.05.26.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 140.0.7339.208
    Safari: 18.6
  npmPackages:
    @10play/tentap-editor: ^0.6.1 => 0.6.3 
    @aws-amplify/core: ^6.11.4 => 6.13.1 
    @aws-amplify/core/internals/adapter-core:  undefined ()
    @aws-amplify/core/internals/aws-client-utils:  undefined ()
    @aws-amplify/core/internals/aws-client-utils/composers:  undefined ()
    @aws-amplify/core/internals/aws-clients/cognitoIdentity:  undefined ()
    @aws-amplify/core/internals/aws-clients/pinpoint:  undefined ()
    @aws-amplify/core/internals/providers/pinpoint:  undefined ()
    @aws-amplify/core/internals/utils:  undefined ()
    @aws-amplify/core/server:  undefined ()
    @aws-amplify/datastore: ^5.0.87 => 5.0.88 
    @aws-amplify/react-native: ^1.1.7 => 1.1.10 
    @aws-amplify/rtn-web-browser: ^1.1.1 => 1.1.4 
    @aws-amplify/ui-react-native: ^2.2.19 => 2.5.3 
    @azure/core-asynciterator-polyfill: ^1.0.2 => 1.0.2 
    @babel/core: ^7.20.0 => 7.28.0 
    @bacons/apple-targets: ^3.0.2 => 3.0.2 
    @expo/react-native-action-sheet: ^4.1.0 => 4.1.1 
    @expo/vector-icons: ^14.1.0 => 14.1.0 
    @gorhom/bottom-sheet: ^5 => 5.1.8 
    @notifee/react-native: ^9.1.8 => 9.1.8 
    @quidone/react-native-wheel-picker: ^1.4.0 => 1.5.2 
    @react-native-async-storage/async-storage: 2.1.2 => 2.1.2 
    @react-native-community/netinfo: ^11.4.1 => 11.4.1 
    @react-native-picker/picker: 2.11.1 => 2.11.1 
    @react-native-segmented-control/segmented-control: 2.5.7 => 2.5.7 
    @react-navigation/drawer: ^7.0.0 => 7.5.6 
    @reduxjs/toolkit: ^2.2.7 => 2.8.2 
    @reduxjs/toolkit-query:  1.0.0 
    @reduxjs/toolkit-query-react:  1.0.0 
    @reduxjs/toolkit-react:  1.0.0 
    @sentry/react-native: ~6.10.0 => 6.10.0 
    @shopify/flash-list: 1.7.6 => 1.7.6 
    @shopify/react-native-skia: 2.0.0-next.4 => 2.0.0-next.4 
    @tanstack/query-codemods:  undefined ()
    @tanstack/react-query: ^5.62.7 => 5.84.2 
    @types/jest: ^29.5.12 => 29.5.14 
    @types/lodash: ^4.17.14 => 4.17.20 
    @types/luxon: ^3.6.2 => 3.7.1 
    @types/react: ~19.0.10 => 19.0.14 (18.3.23)
    @types/react-test-renderer: ^18.0.7 => 18.3.1 
    @types/tinycolor2: ^1.4.6 => 1.4.6 
    @yunusyuksel/pomodoro-live-activitiy: ^1.0.0 => 1.0.0 
    @zamplyy/react-native-nice-avatar: ^1.1.2 => 1.1.2 
    add: ^2.0.6 => 2.0.6 
    aws-amplify: ^6.14.4 => 6.15.5 
    aws-amplify/adapter-core:  undefined ()
    aws-amplify/adapter-core/internals:  undefined ()
    aws-amplify/analytics:  undefined ()
    aws-amplify/analytics/kinesis:  undefined ()
    aws-amplify/analytics/kinesis-firehose:  undefined ()
    aws-amplify/analytics/personalize:  undefined ()
    aws-amplify/analytics/pinpoint:  undefined ()
    aws-amplify/api:  undefined ()
    aws-amplify/api/internals:  undefined ()
    aws-amplify/api/server:  undefined ()
    aws-amplify/auth:  undefined ()
    aws-amplify/auth/cognito:  undefined ()
    aws-amplify/auth/cognito/server:  undefined ()
    aws-amplify/auth/enable-oauth-listener:  undefined ()
    aws-amplify/auth/server:  undefined ()
    aws-amplify/data:  undefined ()
    aws-amplify/data/server:  undefined ()
    aws-amplify/datastore:  undefined ()
    aws-amplify/in-app-messaging:  undefined ()
    aws-amplify/in-app-messaging/pinpoint:  undefined ()
    aws-amplify/push-notifications:  undefined ()
    aws-amplify/push-notifications/pinpoint:  undefined ()
    aws-amplify/storage:  undefined ()
    aws-amplify/storage/s3:  undefined ()
    aws-amplify/storage/s3/server:  undefined ()
    aws-amplify/storage/server:  undefined ()
    aws-amplify/utils:  undefined ()
    axios: ^1.8.2 => 1.11.0 
    date-fns: ^4.1.0 => 4.1.0 
    dotenv-cli: ^8.0.0 => 8.0.0 
    eslint: ^8.57.0 => 8.57.1 (9.33.0)
    eslint-config-expo: ~9.2.0 => 9.2.0 
    eslint-config-prettier: ^9.1.0 => 9.1.2 
    eslint-plugin-prettier: ^5.2.1 => 5.5.4 
    expo: ^53.0.9 => 53.0.20 
    expo-audio: ~0.4.5 => 0.4.8 
    expo-av: ~15.1.4 => 15.1.7 
    expo-blur: ~14.1.5 => 14.1.5 
    expo-build-properties: ~0.14.8 => 0.14.8 
    expo-checkbox: ~4.1.4 => 4.1.4 
    expo-constants: ~17.1.6 => 17.1.7 
    expo-crypto: ~14.1.4 => 14.1.5 
    expo-dev-client: ~5.2.4 => 5.2.4 
    expo-device: ~7.1.4 => 7.1.4 
    expo-font: ~13.3.1 => 13.3.2 
    expo-haptics: ~14.1.4 => 14.1.4 
    expo-image: ~2.1.7 => 2.1.7 
    expo-image-manipulator: ~13.1.7 => 13.1.7 
    expo-image-picker: ~16.1.4 => 16.1.4 
    expo-linear-gradient: ~14.1.5 => 14.1.5 
    expo-linking: ~7.1.5 => 7.1.7 
    expo-localization: ~16.1.6 => 16.1.6 
    expo-modules-core: ~2.4.2 => 2.4.2 (2.5.0)
    expo-notifications: ~0.31.2 => 0.31.4 
    expo-router: ~5.0.7 => 5.0.7 
    expo-splash-screen: ~0.30.8 => 0.30.10 
    expo-status-bar: ~2.2.3 => 2.2.3 
    expo-system-ui: ~5.0.7 => 5.0.10 
    expo-web-browser: ~14.1.6 => 14.1.6 
    formik: ^2.4.6 => 2.4.6 
    i18next: ^25.3.2 => 25.3.2 
    jest: ^29.2.1 => 29.7.0 
    jest-expo: ~53.0.5 => 53.0.9 
    lodash: ^4.17.21 => 4.17.21 
    lottie-react-native: 7.2.2 => 7.2.2 
    luxon: ^3.5.0 => 3.7.1 
    moment: ^2.30.1 => 2.30.1 
    my-app:  1.0.0 
    node-fetch: ^3.3.2 => 3.3.2 (2.7.0)
    openai: ^4.96.0 => 4.104.0 
    prettier: ^3.3.3 => 3.6.2 
    react: 19.0.0 => 19.0.0 (19.2.0-canary-5252281c-20250408)
    react-dom: 19.0.0 => 19.0.0 (18.3.1, 19.2.0-canary-5252281c-20250408)
    react-i18next: ^15.6.1 => 15.6.1 
    react-native: 0.79.2 => 0.79.2 
    react-native-chart-kit: ^6.12.0 => 6.12.0 
    react-native-circle-slider: ^2.9.0 => 2.9.0 
    react-native-circular-slider: ^1.0.1 => 1.0.1 
    react-native-device-activity: ^0.5.0 => 0.5.0 
    react-native-gesture-handler: ~2.24.0 => 2.24.0 
    react-native-get-random-values: ^1.11.0 => 1.11.0 
    react-native-gifted-charts: ^1.4.56 => 1.4.63 
    react-native-gifted-chat: ^2.8.1 => 2.8.1 
    react-native-image-crop-picker: ^0.41.5 => 0.41.6 
    react-native-infinite-wheel-picker: ^1.0.0 => 1.0.0 
    react-native-keyboard-aware-scroll-view: ^0.9.5 => 0.9.5 
    react-native-keyboard-controller: ^1.18.2 => 1.18.3 
    react-native-markdown-display: ^7.0.2 => 7.0.2 
    react-native-modal: ^14.0.0-rc.1 => 14.0.0-rc.1 
    react-native-modalfy: ^3.6.0 => 3.7.0 
    react-native-notifications: ^5.1.0 => 5.1.0 
    react-native-pager-view: ^6.9.1 => 6.9.1 
    react-native-paper: ^5.14.3 => 5.14.5 
    react-native-pell-rich-editor: ^1.9.0 => 1.10.0 
    react-native-picker-select: ^9.3.1 => 9.3.1 
    react-native-popover-view: ^6.1.0 => 6.1.0 
    react-native-progress: ^5.0.1 => 5.0.1 
    react-native-radial-slider: ^1.1.0 => 1.1.0 
    react-native-reanimated: ~3.17.4 => 3.17.5 
    react-native-render-html: ^6.3.4 => 6.3.4 
    react-native-safe-area-context: 5.4.0 => 5.4.0 
    react-native-screens: ~4.10.0 => 4.10.0 
    react-native-shimmer: ^0.6.0 => 0.6.0 
    react-native-shimmer-placeholder: ^2.0.9 => 2.0.9 
    react-native-size-matters: ^0.4.2 => 0.4.2 
    react-native-skeleton-placeholder: ^5.2.4 => 5.2.4 
    react-native-svg: 15.11.2 => 15.11.2 (15.12.1)
    react-native-swipeout: ^2.3.6 => 2.3.6 
    react-native-tab-view: ^4.1.3 => 4.1.3 
    react-native-toast-message: ^2.3.3 => 2.3.3 
    react-native-web: ^0.20.0 => 0.20.0 
    react-native-webview: 13.13.5 => 13.13.5 
    react-number-format: ^5.4.3 => 5.4.4 
    react-redux: ^9.1.2 => 9.2.0 
    react-test-renderer: 18.2.0 => 18.2.0 (19.0.0)
    redux-persist: ^6.0.0 => 6.0.0 
    redux-persist/integration/react:  undefined ()
    reselect: ^5.1.1 => 5.1.1 
    tinycolor2: ^1.6.0 => 1.6.0 
    toastify-react-native: ^7.2.3 => 7.2.3 
    typescript: ~5.8.3 => 5.8.3 
    use-debounce: ^10.0.3 => 10.0.5 
    use-interval: ^1.4.0 => 1.4.0 
    usehooks-ts: ^3.1.0 => 3.1.1 
    uuid: ^11.0.2 => 11.1.0 (8.3.2, 9.0.1, 7.0.3)
    victory-native: ^41.16.0 => 41.18.0 
    with-rn-image-crop-picker: ^0.2.0 => 0.2.0 
    yarn: ^1.22.22 => 1.22.22 
    yup: ^1.4.0 => 1.7.0 
    zustand: ^5.0.7 => 5.0.7 
  npmGlobalPackages:
    @aws-amplify/cli: 12.14.4
    depcheck: 1.4.7
    eas-cli: 16.6.2
    yarn: 1.22.22

Describe the bug

AWS Amplify DataStore is not syncing changes made to models when they are created/updated through Amplify Studio.
The local DataStore cache remains stale even though the backend data is correctly modified in DynamoDB.

This causes admin-managed content to never update on client devices unless users clear local storage.

GraphQL Schema (example model):

type Category @model @auth(rules: [{ allow: private, operations: [read] }]) {
id: ID!
name: String!
description: String
createdAt: AWSDateTime
updatedAt: AWSDateTime
}

Expected behavior

Admin creates/updates a record via Amplify Studio

DataStore automatically syncs the changes to the local cache

React app reflects the new/updated data immediately, without requiring manual reset

Reproduction steps

✅ Verified sync expressions → affected model is not excluded

✅ Checked auth rules → { allow: private } should allow IAM access

✅ Added extensive logging → queries always return stale data

✅ Confirmed backend updates in DynamoDB → records are updated correctly

⚠️ Still, DataStore never receives subscription events

Code Snippet

// Put your code below this line.

Log output

Details
// Put your logs below this line


aws-exports.js

No response

Manual configuration

No response

Additional configuration

No response

Mobile Device

No response

Mobile Operating System

No response

Mobile Browser

No response

Mobile Browser Version

No response

Additional information and screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    DataStoreRelated to DataStore categorypending-maintainer-responseIssue is pending a response from the Amplify team.pending-triageIssue is pending triage

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions