raveclassic / frp-ts

Functional reactive values-over-time
MIT License
80 stars 8 forks source link

Feat go #46

Open raveclassic opened 2 years ago

raveclassic commented 2 years ago

The PR add a go function (similar to https://github.com/funkia/hareactive#momentaf-sample-bb-behaviorb--b--a-behaviora) that allows lazy evaluation/subscription for conditional logic inside projection functions. Main benefit of such approach is performance. However, the use case kindly provided by @artalar doesn't play well with the memoization design of combine function which requires at least one execution of projection function to warmup its internal cache. Due to the issue above, this PR is a draft until this issue is resolved.

nx-cloud[bot] commented 2 years ago

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 0d3d5a9d68c016d35c0e0687154d5273721f84b7. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


🟥 Failed Commands
nx affected --target=test --parallel --max-parallel=2
✅ Successfully ran 2 targets - [`nx affected --target=lint --parallel --max-parallel=3`](https://cloud.nx.app/runs/KvZ0p7FT4G) - [`nx affected --target=build --parallel --max-parallel=3`](https://cloud.nx.app/runs/HTSjQZbr7O)

Sent with 💌 from NxCloud.