react-instantsearch-core 7.39.1 → 7.41.0

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.
@@ -126,7 +126,10 @@ function useConnector(connector) {
126
126
  (0, _useWidget.useWidget)({
127
127
  widget: widget,
128
128
  parentIndex: parentIndex,
129
- props: stableProps,
129
+ props: [
130
+ stableProps,
131
+ stableAdditionalWidgetProperties
132
+ ],
130
133
  shouldSsr: Boolean(serverContext),
131
134
  skipSuspense: skipSuspense
132
135
  });
@@ -15,5 +15,8 @@ var InstantSearchRSCContext = (0, _react.createContext)({
15
15
  current: 0
16
16
  },
17
17
  waitForResultsRef: null,
18
+ resolveWaitForResultsRef: {
19
+ current: null
20
+ },
18
21
  ignoreMultipleHooksWarning: false
19
22
  });
@@ -42,6 +42,13 @@ function getServerState(children, param) {
42
42
  var shouldRefetch = false;
43
43
  // Two-pass widgets require another query to discover and mount child widgets.
44
44
  (0, _utils.walkIndex)(searchRef.current.mainIndex, function(index) {
45
+ var current = index;
46
+ while(current){
47
+ if (current._isolated) {
48
+ return;
49
+ }
50
+ current = current.getParent();
51
+ }
45
52
  shouldRefetch = shouldRefetch || index.getWidgets().some(_utils.isTwoPassWidget);
46
53
  });
47
54
  if (shouldRefetch) {
@@ -9,4 +9,4 @@ Object.defineProperty(exports, "default", {
9
9
  return _default;
10
10
  }
11
11
  });
12
- var _default = '7.39.1';
12
+ var _default = '7.41.0';
@@ -116,7 +116,10 @@ function useConnector(connector) {
116
116
  useWidget({
117
117
  widget: widget,
118
118
  parentIndex: parentIndex,
119
- props: stableProps,
119
+ props: [
120
+ stableProps,
121
+ stableAdditionalWidgetProperties
122
+ ],
120
123
  shouldSsr: Boolean(serverContext),
121
124
  skipSuspense: skipSuspense
122
125
  });
@@ -2,6 +2,7 @@ import type { PromiseWithState } from './wrapPromiseWithState';
2
2
  import type { RefObject } from 'react';
3
3
  export type InstantSearchRSCContextApi = {
4
4
  waitForResultsRef: RefObject<PromiseWithState<void> | null> | null;
5
+ resolveWaitForResultsRef?: RefObject<(() => void) | null>;
5
6
  countRef: RefObject<number>;
6
7
  ignoreMultipleHooksWarning: boolean;
7
8
  };
@@ -5,6 +5,9 @@ var InstantSearchRSCContext = createContext({
5
5
  current: 0
6
6
  },
7
7
  waitForResultsRef: null,
8
+ resolveWaitForResultsRef: {
9
+ current: null
10
+ },
8
11
  ignoreMultipleHooksWarning: false
9
12
  });
10
13
 
@@ -33,6 +33,13 @@ import { InstantSearchSSRProvider } from '../components/InstantSearchSSRProvider
33
33
  var shouldRefetch = false;
34
34
  // Two-pass widgets require another query to discover and mount child widgets.
35
35
  walkIndex(searchRef.current.mainIndex, function(index) {
36
+ var current = index;
37
+ while(current){
38
+ if (current._isolated) {
39
+ return;
40
+ }
41
+ current = current.getParent();
42
+ }
36
43
  shouldRefetch = shouldRefetch || index.getWidgets().some(isTwoPassWidget);
37
44
  });
38
45
  if (shouldRefetch) {
@@ -1,2 +1,2 @@
1
- declare const _default: "7.39.1";
1
+ declare const _default: "7.41.0";
2
2
  export default _default;
@@ -1,3 +1,3 @@
1
- var version = '7.39.1';
1
+ var version = '7.41.0';
2
2
 
3
3
  export { version as default };