@inflector/aura 0.3.6 → 0.3.8

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.
@@ -28,7 +28,7 @@ export function useTable(table, Options) {
28
28
  useEffect(() => {
29
29
  const unsubscribe = table.Subscribe((event) => {
30
30
  // Normalize op to uppercase to handle both old and new formats
31
- const op = event.data.op;
31
+ const op = event.action;
32
32
  setData((prev) => {
33
33
  // Helper to prevent duplicates (Upsert logic)
34
34
  const merge = (existing, incoming) => {
@@ -81,7 +81,7 @@ export function useRecord(table, Options) {
81
81
  useEffect(() => {
82
82
  const unsubscribe = table.Subscribe((event) => {
83
83
  // Normalize op to uppercase to handle both old and new formats
84
- const op = event.data.op;
84
+ const op = event.action;
85
85
  setData((prev) => {
86
86
  switch (op) {
87
87
  case 'Get': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inflector/aura",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",