Skip to content

Commit

Permalink
Patch dexie-react-hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
petervmeijgaard committed Feb 2, 2025
1 parent 4545319 commit a517d38
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,10 @@
"engines": {
"node": ">=22.13.1"
},
"packageManager": "[email protected]"
"packageManager": "[email protected]",
"pnpm": {
"patchedDependencies": {
"dexie-react-hooks": "patches/dexie-react-hooks.patch"
}
}
}
14 changes: 14 additions & 0 deletions patches/dexie-react-hooks.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/dist/dexie-react-hooks.mjs b/dist/dexie-react-hooks.mjs
index 7b201dd378e790a3e8de5b4c9d7f2f4b0e5166ff..a91c0b8fd682cb09c41a3b092c3cb3cff8b92054 100644
--- a/dist/dexie-react-hooks.mjs
+++ b/dist/dexie-react-hooks.mjs
@@ -1,6 +1,8 @@
-import { liveQuery, Dexie } from 'dexie';
+import pkg from 'dexie';
import React from 'react';

+const { liveQuery, Dexie } = pkg;
+
function useObservable(observableFactory, arg2, arg3) {
// Resolve vars from overloading variants of this function:
var deps;
9 changes: 7 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a517d38

Please sign in to comment.