You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CreateStoreResult -> CreateStashResult or maybe ExtendedStash
getRecord doesn't account for namespace/table not existing, can runtime error
getRecord, getTable should return | undefined
turn on noUncheckedIndexedAccess tsconfig to help with this
getRecord (or perhaps in a useRecord hook), accept a strongly typed defaultValue for when the record doesn't exist (more ergonomic than ?? { ... } as const satisfies TableRecord<...>)
no helpers to access State from stash.get() with dynamically registered tables, using keys is awkward
see if record value for enums could return a strongly typed value (e.g. 0 | 1 | 2 instead of number)
some way to clear the stash
some method to clear the stash
not being able to get a table by its tableId is annoying during sync, need to carry around original MUD config to map tableId to table label and namespaceLabel
clarify usages of namespace label with namespaceLabel
getConfig -> getTableConfig
The text was updated successfully, but these errors were encountered:
CreateStoreResult
->CreateStashResult
or maybeExtendedStash
getRecord
doesn't account for namespace/table not existing, can runtime errorgetRecord
,getTable
should return| undefined
noUncheckedIndexedAccess
tsconfig to help with thisgetRecord
(or perhaps in auseRecord
hook), accept a strongly typeddefaultValue
for when the record doesn't exist (more ergonomic than?? { ... } as const satisfies TableRecord<...>
)State
fromstash.get()
with dynamically registered tables, using keys is awkward0 | 1 | 2
instead ofnumber
)tableId
is annoying during sync, need to carry around original MUD config to maptableId
to tablelabel
andnamespaceLabel
namespaceLabel
getConfig
->getTableConfig
The text was updated successfully, but these errors were encountered: