resourcerer 1.0.11 → 1.0.12
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/lib/resourcerer.js +2 -2
- package/package.json +1 -1
package/lib/resourcerer.js
CHANGED
|
@@ -115,8 +115,8 @@ export const useResources = (getResources, props) => {
|
|
|
115
115
|
return (!previousCacheKey || previousCacheKey !== getCacheKey(config) ||
|
|
116
116
|
!hasAllDependencies(prevPropsRef.current, [, config]) || config.refetch ||
|
|
117
117
|
// make sure if we were lazy and are no longer lazy (from the same component) that we
|
|
118
|
-
// get included in the list to get updated
|
|
119
|
-
(prevConfig?.lazy
|
|
118
|
+
// get included in the list to get updated (and vice versa)
|
|
119
|
+
(prevConfig?.lazy !== config.lazy));
|
|
120
120
|
});
|
|
121
121
|
|
|
122
122
|
/**
|