@seedprotocol/sdk 0.1.61 → 0.1.62

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.
@@ -989,7 +989,7 @@ const hydrateFromDb = fromCallback(({ sendBack, input: { context } }) => {
989
989
  if (propertyRecordSchema &&
990
990
  propertyRecordSchema.storageType &&
991
991
  propertyRecordSchema.storageType === 'ItemStorage') {
992
- const { Item } = yield import('./index-tV-MoWhc.js');
992
+ const { Item } = yield import('./index-DZr1ley6.js');
993
993
  const item = yield Item.find({
994
994
  seedLocalId,
995
995
  modelName: itemModelName,
@@ -2877,7 +2877,7 @@ const addModelsToDb = fromCallback(({ sendBack, input: { context } }) => {
2877
2877
  if (!models$1) {
2878
2878
  return;
2879
2879
  }
2880
- const { models: SeedModels } = yield import('./seed.schema.config-BkdBBwUC.js');
2880
+ const { models: SeedModels } = yield import('./seed.schema.config-CumSjbki.js');
2881
2881
  const allModels = Object.assign(Object.assign({}, SeedModels), models$1);
2882
2882
  let hasModelsInDb = false;
2883
2883
  const schemaDefsByModelName = new Map();
@@ -6436,7 +6436,7 @@ const useItem = ({ modelName, seedLocalId, seedUid }) => {
6436
6436
  draft[propertyName] = value;
6437
6437
  });
6438
6438
  });
6439
- }, []);
6439
+ }, [setItemData]);
6440
6440
  const readFromDb = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
6441
6441
  if (isReadingDb.current ||
6442
6442
  internalStatus !== 'ready' ||
@@ -6454,7 +6454,7 @@ const useItem = ({ modelName, seedLocalId, seedUid }) => {
6454
6454
  isReadingDb.current = false;
6455
6455
  return;
6456
6456
  }
6457
- setItem(foundItem);
6457
+ setItem(() => foundItem);
6458
6458
  updateItem(foundItem);
6459
6459
  isReadingDb.current = false;
6460
6460
  }), [internalStatus]);
@@ -6476,7 +6476,7 @@ const useItem = ({ modelName, seedLocalId, seedUid }) => {
6476
6476
  return;
6477
6477
  }
6478
6478
  updateItem(newItem);
6479
- setItem(newItem);
6479
+ setItem(() => newItem);
6480
6480
  }));
6481
6481
  setItemSubscription(subscription);
6482
6482
  }
@@ -6768,7 +6768,7 @@ const client = {
6768
6768
  console.error('fs listeners not ready during init');
6769
6769
  }
6770
6770
  globalService.send({ type: 'init', endpoints, models, addresses });
6771
- import('./seed.schema.config-BkdBBwUC.js').then(({ models }) => {
6771
+ import('./seed.schema.config-CumSjbki.js').then(({ models }) => {
6772
6772
  for (const [key, value] of Object.entries(models)) {
6773
6773
  setModel(key, value);
6774
6774
  }
@@ -7341,4 +7341,4 @@ if (isNode()) {
7341
7341
  }
7342
7342
 
7343
7343
  export { GET_SCHEMAS as G, Item as I, Json as J, List as L, Model as M, Property as P, Relation as R, Text as T, GET_SEEDS as a, GET_SEED_IDS as b, GET_STORAGE_TRANSACTION_ID as c, GET_VERSIONS as d, GET_PROPERTIES as e, GET_ALL_PROPERTIES_FOR_ALL_VERSIONS as f, itemMachineAll as g, ImageSrc as h, itemMachineSingle as i, ItemProperty as j, useItem as k, useItemProperties as l, useCreateItem as m, useItemProperty as n, useDeleteItem as o, useGlobalServiceStatus as p, useServices as q, getGlobalService as r, client as s, getCorrectId as t, useItems as u, withSeed as w };
7344
- //# sourceMappingURL=index-BBcjMsIh.js.map
7344
+ //# sourceMappingURL=index-BRj0FIK5.js.map