I'd like to add PowerSync to an existing app and I've setup a playground to test basic PowerSync functionality. What I'm observing is that operations executed in the same writeTransaction()
call are not grouped together in the same CrudTransaction
returned by getNextCrudTransaction()
.
LOG Processing transaction undefined with 1 ops
LOG Op data {"data": {"actionId": "123", "actionType": "foo", "id": "1"}, "id": "1", "op": "PUT", "op_id": 15, "tx_id": 8, "type": "action"}
LOG Processing transaction undefined with 1 ops
LOG Op data {"data": {"actionId": "456", "actionType": "bar", "id": "2"}, "id": "2", "op": "PUT", "op_id": 16, "tx_id": 8, "type": "action"}
The one writeTransaction call is being processed as two separate transactions in the connector. Note also that transaction.transactionId
is undefined
yet the two operations have the same tx_id
value.
I'm using iOS Simulator to test on an iPhone 15. Additionally, here are dependencies present in my package.json
"dependencies": {
"@azure/core-asynciterator-polyfill": "^1.0.2",
"@expo-google-fonts/inter": "^0.2.3",
"@gorhom/bottom-sheet": "^4.5.1",
"@journeyapps/powersync-sdk-react-native": "1.0.1",
"@journeyapps/react-native-quick-sqlite": "1.0.0",
"@legendapp/motion": "^2.2.1",
"@react-native-async-storage/async-storage": "1.18.2",
"@react-navigation/drawer": "^6.6.6",
"@rneui/base": "4.0.0-rc.8",
"@sentry/react-native": "5.10.0",
"@tanstack/react-query": "^5.0.5",
"@testing-library/jest-native": "^5.4.3",
"@testing-library/react-native": "^12.4.2",
"@uidotdev/usehooks": "^2.4.1",
"base-64": "^1.0.0",
"expo": "~49.0.21",
"expo-application": "~5.3.0",
"expo-asset": "~8.10.1",
"expo-background-fetch": "~11.3.0",
"expo-clipboard": "~4.3.1",
"expo-constants": "~14.4.2",
"expo-dev-client": "~2.4.12",
"expo-device": "~5.4.0",
"expo-file-system": "~15.4.5",
"expo-font": "~11.4.0",
"expo-image-picker": "~14.3.2",
"expo-linking": "~5.0.2",
"expo-localization": "~14.3.0",
"expo-router": "^2.0.14",
"expo-splash-screen": "~0.20.5",
"expo-status-bar": "~1.6.0",
"firebase": "^10.5.2",
"i18next": "^23.6.0",
"intl-pluralrules": "^2.0.1",
"jest": "^29.7.0",
"lodash": "^4.17.21",
"mathjs": "^12.2.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.47.0",
"react-i18next": "^13.3.1",
"react-modal-sheet": "^2.2.0",
"react-native": "0.72.6",
"react-native-drawer-layout": "^3.2.2",
"react-native-element-dropdown": "^2.10.1",
"react-native-fetch-api": "^3.0.0",
"react-native-gesture-handler": "~2.12.0",
"react-native-get-random-values": "~1.9.0",
"react-native-loading-spinner-overlay": "^3.0.1",
"react-native-modal": "^13.0.1",
"react-native-polyfill-globals": "^3.1.0",
"react-native-reanimated": "~3.3.0",
"react-native-round-flags": "^1.0.4",
"react-native-safe-area-context": "4.6.3",
"react-native-screens": "~3.22.0",
"react-native-toast-message": "^2.2.0",
"react-native-url-polyfill": "^2.0.0",
"react-native-web": "0.19.9",
"reflect-metadata": "^0.1.13",
"sentry-expo": "~7.1.0",
"styled-components": "^6.1.0",
"text-encoding": "^0.7.0",
"ts-jest": "^29.1.1",
"typeorm": "^0.3.17",
"uuid": "^9.0.1",
"web-streams-polyfill": "^3.3.2"
},
"devDependencies": {
"@babel/core": "7.23.5",
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
"@types/jest": "^29.5.11",
"@types/lodash": "^4.14.202",
"@types/react": "18.2.42",
"@types/styled-components": "^5.1.29",
"@types/uuid": "^9.0.7",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"ajv": "^8.12.0",
"axios": "^1.6.2",
"babel-plugin-transform-typescript-metadata": "^0.3.2",
"eslint": "8.55.0",
"eslint-config-universe": "12.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"prettier": "^3.1.0",
"ts-node": "^10.9.2",
"typescript": "5.3.2"
}