clear-react-router 1.8.1 → 1.8.2

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 +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -463,7 +463,7 @@ const UserProfile = () => {
463
463
 
464
464
  ### `useInvalidate()`
465
465
 
466
- Returns a function that revalidates cached route data by executing the route lifecycle again.
466
+ Returns a function that revalidates **cached** route data by executing the route lifecycle again.
467
467
 
468
468
  Calling `invalidate()` clears the cached loader result and immediately runs both `beforeLoad` and `loader` for the specified route. This is useful after mutations or any operation that changes data used by the route.
469
469
 
@@ -553,7 +553,7 @@ will revalidate the cached child routes:
553
553
  #### Notes
554
554
 
555
555
  * `invalidate()` re-executes both `beforeLoad` and `loader` for the invalidated route.
556
- * Only routes that already have cached data are revalidated.
556
+ * **Only routes that already have cached data are revalidated.**
557
557
  * Cached data is discarded before the new loader starts.
558
558
  * When used as an event handler, wrap the call in an arrow function:
559
559
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clear-react-router",
3
- "version": "1.8.1",
3
+ "version": "1.8.2",
4
4
  "description": "A lightweight, type-safe routing library for React applications",
5
5
  "author": "Andrew Bubnov",
6
6
  "scripts": {