diff --git a/libs/rx-stateful/src/lib/rx-stateful$.ts b/libs/rx-stateful/src/lib/rx-stateful$.ts index d710e66..bf93d81 100644 --- a/libs/rx-stateful/src/lib/rx-stateful$.ts +++ b/libs/rx-stateful/src/lib/rx-stateful$.ts @@ -90,7 +90,7 @@ export function rxStateful$( connector: () => new ReplaySubject(1), resetOnError: false, resetOnComplete: false, - resetOnRefCountZero: false, + resetOnRefCountZero: true, }), _handleSyncValue() );