Skip to content

Commit

Permalink
Merge pull request #606 from callstack-internal/bugfix/restore-dist-e…
Browse files Browse the repository at this point in the history
…ntrypoint

Restore dist entry point
  • Loading branch information
mountiny authored Dec 9, 2024
2 parents 5f4bf77 + ca469d9 commit 329876f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/useOnyx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function useOnyx<TKey extends OnyxKey, TReturnValue = OnyxValue<TKey>>(
// 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.
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 329876f

Please sign in to comment.