Closed bradjones1 closed 2 years ago
@bradjones1 can you provide a reproduction, perhaps based on this codesandbox ?
Both of the following forms (single operation / array of operations) appear to be working with v0.17-beta.25:
await memory.update((t) => t.addRecord(jupiter));
await memory.update((t) => [
t.addRecord(earth),
t.addRecord(venus),
t.addRecord(io),
t.addRecord(europa),
t.addRecord(theMoon)
]);
I can no longer recreate this.
When following the documentation at https://orbitjs.com/docs/next/updating-data#transforms for adding a record, if you use the snippet as-is, with the arrow function returning
t.addRecord()
directly, Orbit0.17
beta fails withUnhandled Rejection (TypeError): transform is undefined in isTransform at /src/transform.ts:113
I noticed the snippet just below, where you can return an array of transforms, and tried that instead (basically, an array of one.) This works.
is this a BC break in
0.17
from a previous behavior, or are the docs wrong?