Forward-like but for list of pairs of units #151
Replies: 3 comments 2 replies
-
I like the idea, but this name sounds weird to me. |
Beta Was this translation helpful? Give feedback.
-
I think that
|
Beta Was this translation helpful? Give feedback.
-
Also, maybe some additional enchanced api would make sense? Like this: forwardPairs({
base, // Record<string, Unit>
target, // Record<string, Unit>
rule, // (basePropName: string): string => targetPropName
})
// and then just
forwardPairs({
base: navigation,
target: app.navigation,
rule: (name) => name, // makes more sense as a default option with api like that
}) |
Beta Was this translation helpful? Give feedback.
-
Now
Proposal
Beta Was this translation helpful? Give feedback.
All reactions