Open kilbot opened 23 hours ago
I just rolled back to 15.33.0
and the problem is fixed.
My knowledge of rxjs
is not great, but is it possible to go back to the previous way of emitting values? This would keep it consistent with RxDocument
, eg: useObservableEagerState(RxDocument.property$)
still works fine.
Yes there was a change to fix a bug that let the tests fail randomly: https://github.com/pubkey/rxdb/commit/aba371c7d0c1ba4f8f9aa46a8321963d17450b20 Please make a test case if there is something not working for you.
Here is a codesandbox illustrating the problem: https://codesandbox.io/p/sandbox/6mdyks
I will take a look at the code when I get a chance to put this in something that can pass/fail a test.
Did something change with RxState recently?
I used to be able to do
useObservableEagerState(RxState.property$)
, but suddenly it's causing infinite renders everywhere. To fix it I had to change usage touseObservableState(RxState.property$.pipe(skip(1)), RxState.property)
.It's possible it has something to do with this note from
observable-hooks
: