final-form / react-final-form-arrays

A component for rendering and editing arrays 🏁 React Final Form
MIT License
205 stars 70 forks source link

using decorators/final form calculate with form array #14

Open shrynx opened 6 years ago

shrynx commented 6 years ago

👋 Hey, thanks for taking an interest in making 🏁 React Final Form Arrays! After trying other form library i can definitely conclude It is near perfect library for forms, just some edges to be sorted out.

Are you submitting a bug report or a feature request?

feature request or maybe a bug report

What is the current behavior?

There is no specification on how to use final-form-calculate or more specifically decorators with array-form

What is the expected behavior?

exposing decorator api to for array form

Sandbox Link

n/a

What's your environment?

applicable to all versions

Other information

n/a

rosskevin commented 6 years ago

@erikras I have a sample that I think would be applicable to decorators on an array:

When I have a list of addresses And each address can be marked as defaultBilling or defaultShipping And only one address in the list can be defaulted at any time When I check defaultBilling on one address Then any address previously marked as defaultBilling should be marked as false.

Is decorator the right thing for me or do you have other suggestions?

shrynx commented 6 years ago

related https://github.com/final-form/final-form-calculate/issues/4

dziamid commented 5 years ago

Any workaround so far?