Compare commits

...

5 Commits

Author SHA1 Message Date
Anselm Eickhoff
f4fa80b782 Merge pull request #1469 from garden-co/changeset-release/main 2025-02-23 10:13:07 +00:00
github-actions[bot]
782df5d4b8 Version Packages 2025-02-23 10:12:42 +00:00
Anselm Eickhoff
9db20ad630 Merge pull request #1468 from Schniz/schniz/fix-rn-kv-persistence 2025-02-23 10:11:09 +00:00
Gal Schlezinger
3405d8f275 Add changeset 2025-02-23 12:09:48 +02:00
Gal Schlezinger
0a64dca0cd [jazz-react-native] override Context#getKvStore to actually use the declared kvStore in the provider 2025-02-23 11:42:46 +02:00
9 changed files with 37 additions and 4 deletions

View File

@@ -1,5 +1,13 @@
# chat-rn-clerk
## 1.0.75
### Patch Changes
- Updated dependencies [3405d8f]
- jazz-react-native@0.10.10
- jazz-react-native-auth-clerk@0.10.10
## 1.0.74
### Patch Changes

View File

@@ -1,7 +1,7 @@
{
"name": "chat-rn-clerk",
"main": "index.js",
"version": "1.0.74",
"version": "1.0.75",
"scripts": {
"build": "expo export -p ios",
"start": "expo start",

View File

@@ -1,5 +1,12 @@
# chat-rn
## 1.0.71
### Patch Changes
- Updated dependencies [3405d8f]
- jazz-react-native@0.10.10
## 1.0.70
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "chat-rn",
"version": "1.0.70",
"version": "1.0.71",
"main": "index.js",
"scripts": {
"build": "expo export -p ios",

View File

@@ -1,5 +1,12 @@
# jazz-react-native-auth-clerk
## 0.10.10
### Patch Changes
- Updated dependencies [3405d8f]
- jazz-react-native@0.10.10
## 0.10.9
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "jazz-react-native-auth-clerk",
"version": "0.10.9",
"version": "0.10.10",
"type": "module",
"main": "dist/index.js",
"types": "src/index.tsx",

View File

@@ -1,5 +1,11 @@
# jazz-browser
## 0.10.10
### Patch Changes
- 3405d8f: read provided kvStore instead of falling back to the default in-memory store
## 0.10.8
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "jazz-react-native",
"version": "0.10.8",
"version": "0.10.10",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",

View File

@@ -11,6 +11,7 @@ import {
createJazzReactNativeContext,
createJazzReactNativeGuestContext,
} from "./platform.js";
import { KvStoreContext } from "./storage/kv-store-context.js";
export type JazzContextManagerProps<Acc extends Account> = {
guestMode?: boolean;
@@ -59,6 +60,10 @@ export class ReactNativeContextManager<
await this.updateContext(props, currentContext, authProps);
}
getKvStore(): KvStore {
return KvStoreContext.getInstance().getStorage();
}
propsChanged(props: JazzContextManagerProps<Acc>) {
if (!this.props) {
return true;