@dxos/plugin-space 0.6.10 → 0.6.11-staging.32b42e4

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.
@@ -1729,6 +1729,7 @@ var SpacePlugin = ({ firstRun, onFirstRun } = {}) => {
1729
1729
  } : typeof primary === "string" && primary.length === OBJECT_ID_LENGTH ? /* @__PURE__ */ React17.createElement(MissingObject, {
1730
1730
  id: primary
1731
1731
  }) : null;
1732
+ // TODO(burdon): Add role name syntax to minimal plugin docs.
1732
1733
  case "tree--empty":
1733
1734
  switch (true) {
1734
1735
  case data.plugin === SPACE_PLUGIN:
@@ -1930,7 +1931,8 @@ var SpacePlugin = ({ firstRun, onFirstRun } = {}) => {
1930
1931
  ],
1931
1932
  connector: () => {
1932
1933
  const spaces = toSignal((onChange) => client.spaces.subscribe(() => onChange()).unsubscribe, () => client.spaces.get());
1933
- if (!spaces) {
1934
+ const isReady = toSignal((onChange) => client.spaces.isReady.subscribe(() => onChange()).unsubscribe, () => client.spaces.isReady.get());
1935
+ if (!spaces || !isReady) {
1934
1936
  return;
1935
1937
  }
1936
1938
  const [spacesOrder] = memoizeQuery(client.spaces.default, Filter.schema(Expando, {