@dropfi/xrpl-react 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +0 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -7,9 +7,9 @@ var XrplProvider = ({ config, children }) => {
|
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
// src/useXrplReact.tsx
|
|
10
|
-
import { useContext
|
|
10
|
+
import { useContext, useEffect, useMemo, useState } from "react";
|
|
11
11
|
function useXrplReact() {
|
|
12
|
-
const context =
|
|
12
|
+
const context = useContext(XrplContext);
|
|
13
13
|
if (!context) {
|
|
14
14
|
throw new Error("useXrplReact must be used within a XrplProvider");
|
|
15
15
|
}
|