@ark-ui/solid 3.0.0-3 → 3.0.0-4

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/esm/index.js CHANGED
@@ -1172,7 +1172,7 @@ const ComboboxPositioner = props => {
1172
1172
 
1173
1173
  const useCombobox = props => {
1174
1174
  const [collectionOptions, rest] = createSplitProps()(props, ['isItemDisabled', 'itemToValue', 'itemToString', 'items']);
1175
- const collection = () => combobox$1.collection(collectionOptions);
1175
+ const collection = createMemo(() => combobox$1.collection(collectionOptions));
1176
1176
  const locale = useLocaleContext();
1177
1177
  const environment = useEnvironmentContext();
1178
1178
  const context = mergeProps$1({
@@ -1180,7 +1180,9 @@ const useCombobox = props => {
1180
1180
  dir: locale().dir,
1181
1181
  getRootNode: environment().getRootNode,
1182
1182
  'open.controlled': props.open !== undefined,
1183
- collection: collection()
1183
+ get collection() {
1184
+ return collection();
1185
+ }
1184
1186
  }, rest);
1185
1187
  const [state, send] = useMachine(combobox$1.machine(context), {
1186
1188
  context
@@ -3283,17 +3285,19 @@ const SelectPositioner = props => {
3283
3285
  };
3284
3286
 
3285
3287
  const useSelect = props => {
3286
- const [collectionOptions, rest] = createSplitProps()(props, ['isItemDisabled', 'itemToValue', 'itemToString', 'items']);
3287
- const collection = () => select$1.collection(collectionOptions);
3288
+ const [collectionOptions, localProps] = createSplitProps()(props, ['isItemDisabled', 'itemToValue', 'itemToString', 'items']);
3289
+ const collection = createMemo(() => select$1.collection(collectionOptions));
3288
3290
  const locale = useLocaleContext();
3289
3291
  const environment = useEnvironmentContext();
3290
3292
  const context = mergeProps$1({
3291
3293
  id: createUniqueId(),
3292
3294
  dir: locale().dir,
3293
3295
  getRootNode: environment().getRootNode,
3294
- collection: collection(),
3295
- 'open.controlled': props.open !== undefined
3296
- }, rest);
3296
+ 'open.controlled': props.open !== undefined,
3297
+ get collection() {
3298
+ return collection();
3299
+ }
3300
+ }, localProps);
3297
3301
  const [state, send] = useMachine(select$1.machine(context), {
3298
3302
  context
3299
3303
  });