From e0b96b9aa19d20fafe11362cf05c3515f6753dda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Henriques?= Date: Mon, 9 Dec 2024 10:49:06 +0100 Subject: [PATCH 1/2] Restore main entry point to use dist files --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ec00fe850..91d83bfe8 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ "README.md", "LICENSE.md" ], - "main": "lib/index.ts", + "main": "dist/index.js", + "types": "dist/index.d.ts", "scripts": { "lint": "eslint .", "typecheck": "tsc --noEmit", From ca469d96f3f4a19516858b6bd38cd4888e6fd33c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Henriques?= Date: Mon, 9 Dec 2024 10:49:20 +0100 Subject: [PATCH 2/2] Fix typo --- lib/useOnyx.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/useOnyx.ts b/lib/useOnyx.ts index 15ccc06c3..701e3ac48 100644 --- a/lib/useOnyx.ts +++ b/lib/useOnyx.ts @@ -144,7 +144,7 @@ function useOnyx>( // in `getSnapshot()` to be satisfied several times. const isFirstConnectionRef = useRef(true); - // Indicates if the hook is connecting to a Onyx key. + // Indicates if the hook is connecting to an Onyx key. const isConnectingRef = useRef(false); // Stores the `onStoreChange()` function, which can be used to trigger a `getSnapshot()` update when desired.