raveclassic / frp-ts

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

feat(react): add `useProperties` hook for multiple properties #23

Closed Fyzu closed 2 years ago

Fyzu commented 2 years ago

If we use multiple properties:

const strings = useProperty(strings$)
const filteredStrings = useProperty(filteredStrings$)

Here we will have a problem with the diamond shape.

To solve this problem, we must combine them into one property.

To avoid doing this yourself, I suggest adding a useProperties hook.

Fyzu commented 2 years ago

TODO: