How to use the @politie/sherlock._internal.processChangedAtom function in @politie/sherlock

To help you get started, we’ve selected a few @politie/sherlock examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github politie / sherlock / extensions / sherlock-utils / src / control-flow.ts View on Github external
const update = (newState: StateObject, stop: () => void) => {
            if (this.opts && this.opts.includeUnresolved || newState.resolved) {
                if (skipFirst) {
                    skipFirst = false;
                } else {
                    once && stop();
                    const oldState = this._currentState;
                    this._currentState = fromStateObject(newState);
                    _internal.processChangedAtom(this, oldState, this.version++);
                }
            }
        };
        const cleanup = () => {