@unsetsoft/ryunixjs 0.4.13-nightly.45 → 0.4.13-nightly.47
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/Ryunix.js +5 -0
- package/package.json +1 -1
- package/src/lib/hooks.js +5 -0
package/dist/Ryunix.js
CHANGED
|
@@ -245,6 +245,11 @@
|
|
|
245
245
|
vars.hookIndex++;
|
|
246
246
|
};
|
|
247
247
|
|
|
248
|
+
/**
|
|
249
|
+
* The `useQuery` function is a custom hook in JavaScript that retrieves query parameters from the URL
|
|
250
|
+
* and stores them in a hook for easy access.
|
|
251
|
+
* @returns The `useQuery` function returns the `query` property of the `hook` object.
|
|
252
|
+
*/
|
|
248
253
|
const useQuery = () => {
|
|
249
254
|
vars.hookIndex++;
|
|
250
255
|
|
package/package.json
CHANGED
package/src/lib/hooks.js
CHANGED
|
@@ -74,6 +74,11 @@ const useEffect = (effect, deps) => {
|
|
|
74
74
|
vars.hookIndex++
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
/**
|
|
78
|
+
* The `useQuery` function is a custom hook in JavaScript that retrieves query parameters from the URL
|
|
79
|
+
* and stores them in a hook for easy access.
|
|
80
|
+
* @returns The `useQuery` function returns the `query` property of the `hook` object.
|
|
81
|
+
*/
|
|
77
82
|
const useQuery = () => {
|
|
78
83
|
vars.hookIndex++
|
|
79
84
|
|