brandonpayton / stream-dom

An experimental, declarative DOM library that models change and I/O using Observables.
MIT License
6 stars 1 forks source link

Consider allowing any input to be static or Observable #26

Open brandonpayton opened 7 years ago

brandonpayton commented 7 years ago

It seems odd for a component to have to anticipate which inputs will be dynamic and which are static.

On the other hand, it complicates declaration logic to either:

  1. Have to check whether each input is Observable
  2. Treat all input as Observable 100% of the time. Simple declaration-time decisions based on simple input become runtime decisions based on Observable events.