@bigbinary/neeto-commons-frontend 3.1.5 → 3.1.9
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/cjs/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +12 -1
- package/cjs/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js.map +1 -1
- package/package.json +2 -2
- package/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js +11 -1
- package/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js.map +1 -1
- package/react-utils.d.ts +45 -0
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.useNavigationCheckpoints = exports["default"] = void 0;
|
|
7
|
+
exports.useRemoveNavigationCheckpoint = exports.useNavigationCheckpoints = exports["default"] = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("react");
|
|
10
10
|
var _ramda = require("ramda");
|
|
@@ -19,6 +19,13 @@ var useCheckpointStore = (0, _zustand.create)((0, _withImmutableActions["default
|
|
|
19
19
|
return set((0, _ramda.mergeDeepLeft)({
|
|
20
20
|
checkpoints: (0, _defineProperty2["default"])({}, key, path)
|
|
21
21
|
}));
|
|
22
|
+
},
|
|
23
|
+
removeCheckpoint: function removeCheckpoint(key) {
|
|
24
|
+
return set(function (state) {
|
|
25
|
+
return {
|
|
26
|
+
checkpoints: (0, _ramda.dissoc)(key, state.checkpoints)
|
|
27
|
+
};
|
|
28
|
+
});
|
|
22
29
|
}
|
|
23
30
|
};
|
|
24
31
|
}));
|
|
@@ -38,6 +45,10 @@ var useNavigationCheckpoints = function useNavigationCheckpoints() {
|
|
|
38
45
|
}, _shallow.shallow);
|
|
39
46
|
};
|
|
40
47
|
exports.useNavigationCheckpoints = useNavigationCheckpoints;
|
|
48
|
+
var useRemoveNavigationCheckpoint = function useRemoveNavigationCheckpoint() {
|
|
49
|
+
return useCheckpointStore((0, _ramda.prop)("removeCheckpoint"));
|
|
50
|
+
};
|
|
51
|
+
exports.useRemoveNavigationCheckpoint = useRemoveNavigationCheckpoint;
|
|
41
52
|
var _default = useRegisterNavigationCheckpoint;
|
|
42
53
|
exports["default"] = _default;
|
|
43
54
|
//# sourceMappingURL=useRegisterNavigationCheckpoint.js.map
|
package/cjs/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRegisterNavigationCheckpoint.js","names":["_react","require","_ramda","_withImmutableActions","_interopRequireDefault","_zustand","_shallow","useCheckpointStore","create","withImmutableActions","set","checkpoints","setCheckpoint","key","path","mergeDeepLeft","_defineProperty2","useRegisterNavigationCheckpoint","arguments","length","undefined","window","location","pathname","search","prop","useEffect","useNavigationCheckpoints","_len","keys","Array","_key","store","pick","shallow","exports","_default"],"sources":["../../../../src/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js"],"sourcesContent":["import { useEffect } from \"react\";\n\nimport { mergeDeepLeft, pick, prop } from \"ramda\";\nimport withImmutableActions from \"react-utils/withImmutableActions\";\nimport { create } from \"zustand\";\nimport { shallow } from \"zustand/shallow\";\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useCheckpointStore = create(\n withImmutableActions(set => ({\n checkpoints: {},\n setCheckpoint: (key, path) =>\n set(mergeDeepLeft({ checkpoints: { [key]: path } })),\n }))\n);\n\nconst useRegisterNavigationCheckpoint = (\n key,\n path = window.location.pathname + window.location.search\n) => {\n const setCheckpoint = useCheckpointStore(prop(\"setCheckpoint\"));\n\n useEffect(() => {\n setCheckpoint(key, path);\n }, [key, path]);\n};\n\nexport const useNavigationCheckpoints = (...keys) =>\n useCheckpointStore(store => pick(keys, store.checkpoints), shallow);\n\nexport default useRegisterNavigationCheckpoint;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,qBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAEA;AACA,IAAMM,kBAAkB,GAAG,IAAAC,eAAM,EAC/B,IAAAC,gCAAoB,EAAC,UAAAC,GAAG;EAAA,OAAK;IAC3BC,WAAW,EAAE,CAAC,CAAC;IACfC,aAAa,EAAE,SAAAA,cAACC,GAAG,EAAEC,IAAI;MAAA,OACvBJ,GAAG,CAAC,IAAAK,oBAAa,EAAC;QAAEJ,WAAW,MAAAK,gBAAA,iBAAKH,GAAG,EAAGC,IAAI;MAAG,CAAC,CAAC,CAAC;IAAA;
|
|
1
|
+
{"version":3,"file":"useRegisterNavigationCheckpoint.js","names":["_react","require","_ramda","_withImmutableActions","_interopRequireDefault","_zustand","_shallow","useCheckpointStore","create","withImmutableActions","set","checkpoints","setCheckpoint","key","path","mergeDeepLeft","_defineProperty2","removeCheckpoint","state","dissoc","useRegisterNavigationCheckpoint","arguments","length","undefined","window","location","pathname","search","prop","useEffect","useNavigationCheckpoints","_len","keys","Array","_key","store","pick","shallow","exports","useRemoveNavigationCheckpoint","_default"],"sources":["../../../../src/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js"],"sourcesContent":["import { useEffect } from \"react\";\n\nimport { mergeDeepLeft, pick, prop, dissoc } from \"ramda\";\nimport withImmutableActions from \"react-utils/withImmutableActions\";\nimport { create } from \"zustand\";\nimport { shallow } from \"zustand/shallow\";\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useCheckpointStore = create(\n withImmutableActions(set => ({\n checkpoints: {},\n setCheckpoint: (key, path) =>\n set(mergeDeepLeft({ checkpoints: { [key]: path } })),\n removeCheckpoint: key =>\n set(state => ({ checkpoints: dissoc(key, state.checkpoints) })),\n }))\n);\n\nconst useRegisterNavigationCheckpoint = (\n key,\n path = window.location.pathname + window.location.search\n) => {\n const setCheckpoint = useCheckpointStore(prop(\"setCheckpoint\"));\n\n useEffect(() => {\n setCheckpoint(key, path);\n }, [key, path]);\n};\n\nexport const useNavigationCheckpoints = (...keys) =>\n useCheckpointStore(store => pick(keys, store.checkpoints), shallow);\n\nexport const useRemoveNavigationCheckpoint = () =>\n useCheckpointStore(prop(\"removeCheckpoint\"));\n\nexport default useRegisterNavigationCheckpoint;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,qBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,QAAA,GAAAL,OAAA;AAEA;AACA,IAAMM,kBAAkB,GAAG,IAAAC,eAAM,EAC/B,IAAAC,gCAAoB,EAAC,UAAAC,GAAG;EAAA,OAAK;IAC3BC,WAAW,EAAE,CAAC,CAAC;IACfC,aAAa,EAAE,SAAAA,cAACC,GAAG,EAAEC,IAAI;MAAA,OACvBJ,GAAG,CAAC,IAAAK,oBAAa,EAAC;QAAEJ,WAAW,MAAAK,gBAAA,iBAAKH,GAAG,EAAGC,IAAI;MAAG,CAAC,CAAC,CAAC;IAAA;IACtDG,gBAAgB,EAAE,SAAAA,iBAAAJ,GAAG;MAAA,OACnBH,GAAG,CAAC,UAAAQ,KAAK;QAAA,OAAK;UAAEP,WAAW,EAAE,IAAAQ,aAAM,EAACN,GAAG,EAAEK,KAAK,CAACP,WAAW;QAAE,CAAC;MAAA,CAAC,CAAC;IAAA;EACnE,CAAC;AAAA,CAAC,CAAC,CACJ;AAED,IAAMS,+BAA+B,GAAG,SAAlCA,+BAA+BA,CACnCP,GAAG,EAEA;EAAA,IADHC,IAAI,GAAAO,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGG,MAAM,CAACC,QAAQ,CAACC,QAAQ,GAAGF,MAAM,CAACC,QAAQ,CAACE,MAAM;EAExD,IAAMf,aAAa,GAAGL,kBAAkB,CAAC,IAAAqB,WAAI,EAAC,eAAe,CAAC,CAAC;EAE/D,IAAAC,gBAAS,EAAC,YAAM;IACdjB,aAAa,CAACC,GAAG,EAAEC,IAAI,CAAC;EAC1B,CAAC,EAAE,CAACD,GAAG,EAAEC,IAAI,CAAC,CAAC;AACjB,CAAC;AAEM,IAAMgB,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAA;EAAA,SAAAC,IAAA,GAAAV,SAAA,CAAAC,MAAA,EAAOU,IAAI,OAAAC,KAAA,CAAAF,IAAA,GAAAG,IAAA,MAAAA,IAAA,GAAAH,IAAA,EAAAG,IAAA;IAAJF,IAAI,CAAAE,IAAA,IAAAb,SAAA,CAAAa,IAAA;EAAA;EAAA,OAC9C3B,kBAAkB,CAAC,UAAA4B,KAAK;IAAA,OAAI,IAAAC,WAAI,EAACJ,IAAI,EAAEG,KAAK,CAACxB,WAAW,CAAC;EAAA,GAAE0B,gBAAO,CAAC;AAAA;AAACC,OAAA,CAAAR,wBAAA,GAAAA,wBAAA;AAE/D,IAAMS,6BAA6B,GAAG,SAAhCA,6BAA6BA,CAAA;EAAA,OACxChC,kBAAkB,CAAC,IAAAqB,WAAI,EAAC,kBAAkB,CAAC,CAAC;AAAA;AAACU,OAAA,CAAAC,6BAAA,GAAAA,6BAAA;AAAA,IAAAC,QAAA,GAEhCpB,+BAA+B;AAAAkB,OAAA,cAAAE,QAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-commons-frontend",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.9",
|
|
4
4
|
"description": "A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-commons-frontend.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|
|
@@ -97,4 +97,4 @@
|
|
|
97
97
|
"tailwindcss": "npm:@tailwindcss/postcss7-compat",
|
|
98
98
|
"webpack": "^5.75.0"
|
|
99
99
|
}
|
|
100
|
-
}
|
|
100
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
|
-
import { mergeDeepLeft, pick, prop } from "ramda";
|
|
3
|
+
import { mergeDeepLeft, pick, prop, dissoc } from "ramda";
|
|
4
4
|
import withImmutableActions from "../withImmutableActions";
|
|
5
5
|
import { create } from "zustand";
|
|
6
6
|
import { shallow } from "zustand/shallow";
|
|
@@ -13,6 +13,13 @@ var useCheckpointStore = create(withImmutableActions(function (set) {
|
|
|
13
13
|
return set(mergeDeepLeft({
|
|
14
14
|
checkpoints: _defineProperty({}, key, path)
|
|
15
15
|
}));
|
|
16
|
+
},
|
|
17
|
+
removeCheckpoint: function removeCheckpoint(key) {
|
|
18
|
+
return set(function (state) {
|
|
19
|
+
return {
|
|
20
|
+
checkpoints: dissoc(key, state.checkpoints)
|
|
21
|
+
};
|
|
22
|
+
});
|
|
16
23
|
}
|
|
17
24
|
};
|
|
18
25
|
}));
|
|
@@ -31,5 +38,8 @@ export var useNavigationCheckpoints = function useNavigationCheckpoints() {
|
|
|
31
38
|
return pick(keys, store.checkpoints);
|
|
32
39
|
}, shallow);
|
|
33
40
|
};
|
|
41
|
+
export var useRemoveNavigationCheckpoint = function useRemoveNavigationCheckpoint() {
|
|
42
|
+
return useCheckpointStore(prop("removeCheckpoint"));
|
|
43
|
+
};
|
|
34
44
|
export default useRegisterNavigationCheckpoint;
|
|
35
45
|
//# sourceMappingURL=useRegisterNavigationCheckpoint.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRegisterNavigationCheckpoint.js","names":["useEffect","mergeDeepLeft","pick","prop","withImmutableActions","create","shallow","useCheckpointStore","set","checkpoints","setCheckpoint","key","path","_defineProperty","useRegisterNavigationCheckpoint","arguments","length","undefined","window","location","pathname","search","useNavigationCheckpoints","_len","keys","Array","_key","store"],"sources":["../../../src/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js"],"sourcesContent":["import { useEffect } from \"react\";\n\nimport { mergeDeepLeft, pick, prop } from \"ramda\";\nimport withImmutableActions from \"react-utils/withImmutableActions\";\nimport { create } from \"zustand\";\nimport { shallow } from \"zustand/shallow\";\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useCheckpointStore = create(\n withImmutableActions(set => ({\n checkpoints: {},\n setCheckpoint: (key, path) =>\n set(mergeDeepLeft({ checkpoints: { [key]: path } })),\n }))\n);\n\nconst useRegisterNavigationCheckpoint = (\n key,\n path = window.location.pathname + window.location.search\n) => {\n const setCheckpoint = useCheckpointStore(prop(\"setCheckpoint\"));\n\n useEffect(() => {\n setCheckpoint(key, path);\n }, [key, path]);\n};\n\nexport const useNavigationCheckpoints = (...keys) =>\n useCheckpointStore(store => pick(keys, store.checkpoints), shallow);\n\nexport default useRegisterNavigationCheckpoint;\n"],"mappings":";AAAA,SAASA,SAAS,QAAQ,OAAO;AAEjC,SAASC,aAAa,EAAEC,IAAI,EAAEC,IAAI,QAAQ,OAAO;
|
|
1
|
+
{"version":3,"file":"useRegisterNavigationCheckpoint.js","names":["useEffect","mergeDeepLeft","pick","prop","dissoc","withImmutableActions","create","shallow","useCheckpointStore","set","checkpoints","setCheckpoint","key","path","_defineProperty","removeCheckpoint","state","useRegisterNavigationCheckpoint","arguments","length","undefined","window","location","pathname","search","useNavigationCheckpoints","_len","keys","Array","_key","store","useRemoveNavigationCheckpoint"],"sources":["../../../src/react-utils/useRegisterNavigationCheckpoint/useRegisterNavigationCheckpoint.js"],"sourcesContent":["import { useEffect } from \"react\";\n\nimport { mergeDeepLeft, pick, prop, dissoc } from \"ramda\";\nimport withImmutableActions from \"react-utils/withImmutableActions\";\nimport { create } from \"zustand\";\nimport { shallow } from \"zustand/shallow\";\n\n/** @type {import(\"neetocommons/react-utils\").ZustandStoreHook} */\nconst useCheckpointStore = create(\n withImmutableActions(set => ({\n checkpoints: {},\n setCheckpoint: (key, path) =>\n set(mergeDeepLeft({ checkpoints: { [key]: path } })),\n removeCheckpoint: key =>\n set(state => ({ checkpoints: dissoc(key, state.checkpoints) })),\n }))\n);\n\nconst useRegisterNavigationCheckpoint = (\n key,\n path = window.location.pathname + window.location.search\n) => {\n const setCheckpoint = useCheckpointStore(prop(\"setCheckpoint\"));\n\n useEffect(() => {\n setCheckpoint(key, path);\n }, [key, path]);\n};\n\nexport const useNavigationCheckpoints = (...keys) =>\n useCheckpointStore(store => pick(keys, store.checkpoints), shallow);\n\nexport const useRemoveNavigationCheckpoint = () =>\n useCheckpointStore(prop(\"removeCheckpoint\"));\n\nexport default useRegisterNavigationCheckpoint;\n"],"mappings":";AAAA,SAASA,SAAS,QAAQ,OAAO;AAEjC,SAASC,aAAa,EAAEC,IAAI,EAAEC,IAAI,EAAEC,MAAM,QAAQ,OAAO;AACzD,OAAOC,oBAAoB;AAC3B,SAASC,MAAM,QAAQ,SAAS;AAChC,SAASC,OAAO,QAAQ,iBAAiB;;AAEzC;AACA,IAAMC,kBAAkB,GAAGF,MAAM,CAC/BD,oBAAoB,CAAC,UAAAI,GAAG;EAAA,OAAK;IAC3BC,WAAW,EAAE,CAAC,CAAC;IACfC,aAAa,EAAE,SAAAA,cAACC,GAAG,EAAEC,IAAI;MAAA,OACvBJ,GAAG,CAACR,aAAa,CAAC;QAAES,WAAW,EAAAI,eAAA,KAAKF,GAAG,EAAGC,IAAI;MAAG,CAAC,CAAC,CAAC;IAAA;IACtDE,gBAAgB,EAAE,SAAAA,iBAAAH,GAAG;MAAA,OACnBH,GAAG,CAAC,UAAAO,KAAK;QAAA,OAAK;UAAEN,WAAW,EAAEN,MAAM,CAACQ,GAAG,EAAEI,KAAK,CAACN,WAAW;QAAE,CAAC;MAAA,CAAC,CAAC;IAAA;EACnE,CAAC;AAAA,CAAC,CAAC,CACJ;AAED,IAAMO,+BAA+B,GAAG,SAAlCA,+BAA+BA,CACnCL,GAAG,EAEA;EAAA,IADHC,IAAI,GAAAK,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAGG,MAAM,CAACC,QAAQ,CAACC,QAAQ,GAAGF,MAAM,CAACC,QAAQ,CAACE,MAAM;EAExD,IAAMb,aAAa,GAAGH,kBAAkB,CAACL,IAAI,CAAC,eAAe,CAAC,CAAC;EAE/DH,SAAS,CAAC,YAAM;IACdW,aAAa,CAACC,GAAG,EAAEC,IAAI,CAAC;EAC1B,CAAC,EAAE,CAACD,GAAG,EAAEC,IAAI,CAAC,CAAC;AACjB,CAAC;AAED,OAAO,IAAMY,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAA;EAAA,SAAAC,IAAA,GAAAR,SAAA,CAAAC,MAAA,EAAOQ,IAAI,OAAAC,KAAA,CAAAF,IAAA,GAAAG,IAAA,MAAAA,IAAA,GAAAH,IAAA,EAAAG,IAAA;IAAJF,IAAI,CAAAE,IAAA,IAAAX,SAAA,CAAAW,IAAA;EAAA;EAAA,OAC9CrB,kBAAkB,CAAC,UAAAsB,KAAK;IAAA,OAAI5B,IAAI,CAACyB,IAAI,EAAEG,KAAK,CAACpB,WAAW,CAAC;EAAA,GAAEH,OAAO,CAAC;AAAA;AAErE,OAAO,IAAMwB,6BAA6B,GAAG,SAAhCA,6BAA6BA,CAAA;EAAA,OACxCvB,kBAAkB,CAACL,IAAI,CAAC,kBAAkB,CAAC,CAAC;AAAA;AAE9C,eAAec,+BAA+B"}
|
package/react-utils.d.ts
CHANGED
|
@@ -1191,6 +1191,51 @@ export function useRegisterNavigationCheckpoint(key: string, path?: string): voi
|
|
|
1191
1191
|
export function useNavigationCheckpoints(...keys: string[]): {
|
|
1192
1192
|
[key: string]: string;
|
|
1193
1193
|
};
|
|
1194
|
+
/**
|
|
1195
|
+
*
|
|
1196
|
+
* The useRemoveNavigationCheckpoint hook is a utility for removing a navigation
|
|
1197
|
+
*
|
|
1198
|
+
* checkpoint from the navigation checkpoints stored in the Zustand store.
|
|
1199
|
+
*
|
|
1200
|
+
* In web applications, users frequently move between various pages or routes, and
|
|
1201
|
+
*
|
|
1202
|
+
* useRegisterNavigationCheckpoint empowers us to store particular paths or
|
|
1203
|
+
*
|
|
1204
|
+
* states as checkpoints. By employing the useNavigationCheckpoints hook, you can
|
|
1205
|
+
*
|
|
1206
|
+
* access these checkpoints by specifying their associated keys. There might arise
|
|
1207
|
+
*
|
|
1208
|
+
* a case where you want to remove a particular checkpoint from the Zustand store,
|
|
1209
|
+
*
|
|
1210
|
+
* useRemoveNavigationCheckpoint can be used for this.
|
|
1211
|
+
*
|
|
1212
|
+
* We recommend reviewing the documentation for the
|
|
1213
|
+
*
|
|
1214
|
+
* useRegisterNavigationCheckpoint and useNavigationCheckpoints hooks for
|
|
1215
|
+
*
|
|
1216
|
+
* gaining a deeper understanding of the checkpoint concept.
|
|
1217
|
+
*
|
|
1218
|
+
* The following code snippet demonstrates the usage of
|
|
1219
|
+
*
|
|
1220
|
+
* useRemoveNavigationCheckpoint in removing a navigation checkpoint from the
|
|
1221
|
+
*
|
|
1222
|
+
* Zustand store.
|
|
1223
|
+
*
|
|
1224
|
+
* @example
|
|
1225
|
+
*
|
|
1226
|
+
* // Import the useRemoveNavigationCheckpoint hook
|
|
1227
|
+
* import { useRemoveNavigationCheckpoint } from "@bigbinary/neeto-commons-frontend/react-utils";
|
|
1228
|
+
*
|
|
1229
|
+
* const removeCheckpoint = useRemoveNavigationCheckpoint();
|
|
1230
|
+
*
|
|
1231
|
+
* removeCheckpoint("home");
|
|
1232
|
+
* @endexample
|
|
1233
|
+
* The above code removes the navigation checkpoint corresponding to the home key
|
|
1234
|
+
*
|
|
1235
|
+
* using the useRemoveNavigationCheckpoint hook.
|
|
1236
|
+
*
|
|
1237
|
+
*/
|
|
1238
|
+
export function useRemoveNavigationCheckpoint(): (key: string) => void;
|
|
1194
1239
|
/**
|
|
1195
1240
|
*
|
|
1196
1241
|
* The useFuncDebounce hook is a utility that extends the benefits of debouncing
|