How to use callbag-take-until - 1 common examples

To help you get started, we’ve selected a few callbag-take-until 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 Andarist / use-smooth-scroll / src / index.js View on Github external
? duration(Math.abs(target - start))
              : duration,
          )

          if (resolvedDuration === 0) {
            recyclable[2] = target
            return of(recyclable)
          }

          return pipe(
            durationProgress(resolvedDuration),
            map(p => {
              recyclable[2] = mix(start, target, easing(p))
              return recyclable
            }),
            takeUntil(
              merge(
                fromEvent(node, 'wheel', PASSIVE),
                fromEvent(node, 'touchstart', PASSIVE),
              ),
            ),
          )
        }),
        flatten,

callbag-take-until

Emits the values emitted by the source Callbag until a notifier Callbag emits a value

MIT
Latest version published 3 years ago

Package Health Score

45 / 100
Full package analysis

Popular callbag-take-until functions