@gridsheet/preact-core 3.0.7 → 3.1.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.
package/dist/index.js CHANGED
@@ -4280,6 +4280,12 @@ const Tabular = () => {
4280
4280
  }
4281
4281
  return preventSafariBounce(el);
4282
4282
  }, [sheetReactive]);
4283
+ useEffect(() => {
4284
+ if (!sheet || !sheet.eager || !sheet.registry.ready) {
4285
+ return;
4286
+ }
4287
+ sheet.resolveAll();
4288
+ }, [sheet, sheetReactive]);
4283
4289
  const mergedRefs = {
4284
4290
  ...palette,
4285
4291
  ...sheet ? sheet.registry.paletteBySheetName[sheet.name] : {}
@@ -5029,11 +5035,12 @@ function GridSheet({
5029
5035
  sheetName = `Sheet${sheetId}`;
5030
5036
  console.debug("GridSheet: sheetName is not provided, using default name:", sheetName);
5031
5037
  }
5032
- const { limits, contextMenu, rowMenu, colMenu } = options;
5038
+ const { limits, contextMenu, rowMenu, colMenu, eager } = options;
5033
5039
  const sheet = new Sheet({
5034
5040
  limits,
5035
5041
  name: sheetName,
5036
- registry
5042
+ registry,
5043
+ eager
5037
5044
  });
5038
5045
  sheet.id = sheetId;
5039
5046
  registry.sheetIdsByName[sheetName] = sheetId;