isographlabs / isograph

The UI framework for teams that move fast — without breaking things.
MIT License
202 stars 9 forks source link

Should @component fields take two parameters? #30

Closed rbalicki2 closed 4 months ago

rbalicki2 commented 4 months ago

I am considering having @component fields take two parameters, a la:

iso(`
  field Foo.Bar @component { id }
`)(function(props, additionalProps) {
});

Pros:

Cons:

rbalicki2 commented 4 months ago

I have concluded that this is feasible and a good way to go. See the branch rb/demonstration-of-two-params for a demonstration: https://github.com/isographlabs/isograph/pull/new/rb/demonstration-of-two-params