react-hook-toolkit 1.0.5 → 1.0.6

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.
Files changed (2) hide show
  1. package/README.md +6 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -24,7 +24,7 @@ pnpm add react-hook-toolkit
24
24
  ## Features
25
25
  Here's the properly structured documentation with clear purpose explanations:
26
26
 
27
- ### **HOOKS** ------------------------------------------------------------------------------------------
27
+ --------------------------------------- **HOOKS** --------------------------------------------
28
28
  📌 **useAxios**
29
29
  A custom hook for making API requests using Axios. It manages request states (`loading`, `error`, `data`) and provides a function (`makeRequest`) to initiate a request.
30
30
  ```ts
@@ -575,7 +575,9 @@ useUpdateEffect(() => {
575
575
  }, [value]);
576
576
  ```
577
577
 
578
- **COMPONENTS** -------------------------------------------------------------------------------------------
578
+ --------------------------------------- **COMPONENTS** --------------------------------------------
579
+ ---
580
+
579
581
  ✅ **DynamicLoader**
580
582
  A Higher-Order Component (HOC) that dynamically loads a React component using `React.lazy()` with `Suspense`, while wrapping it in an `ErrorBoundary` to handle potential errors gracefully. It ensures that the component is loaded only when needed, reducing the initial bundle size and improving performance.
581
583
 
@@ -584,12 +586,14 @@ import React, { lazy } from "react";
584
586
  const MyComponent = DynamicLoader(lazy(() => import("./MyComponent")));
585
587
 
586
588
  ```
589
+ ---
587
590
  ✅ **AlertMessage**
588
591
  A functional React component that displays dynamic alerts using the enqueueSnackbar function. It provides a customizable message with a specified type and duration. The alerts can be dismissed manually by clicking a close button, and they support various configurations such as position, auto-hide duration, and duplicate prevention.
589
592
 
590
593
  ```jsx
591
594
  <AlertMessage type="success" msg="Data saved successfully!" />
592
595
  ```
596
+ ---
593
597
 
594
598
  ✏️ **Authors**
595
599
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-hook-toolkit",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Ultimate package for React developers, offering a powerful collection of hooks and components to enhance their development experience.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",