Repository navigation
Commit 4295bad
committed
fix(data): unblock persistence for null owner and use correct defaults on retirement
- When createReplica receives a null owner, call decide(false) so served
settles immediately and persistence calls proceed through the local store.
- On retirement, resolve pending recover calls with [] and cursor calls with
null instead of undefined, matching the owner-side fallback and preventing
a TypeError when store.recover iterates the result.1 parent e576727 commit 4295bad
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
737 | 737 | | |
738 | 738 | | |
739 | 739 | | |
740 | | - | |
| 740 | + | |
| 741 | + | |
741 | 742 | | |
742 | 743 | | |
743 | 744 | | |
| |||
926 | 927 | | |
927 | 928 | | |
928 | 929 | | |
| 930 | + | |
| 931 | + | |
929 | 932 | | |
930 | 933 | | |
931 | 934 | | |
| |||
0 commit comments