Unify InlineForm success callbacks to onSuccess(type) #41
Labels
No labels
bug
duplicate
enhancement
good first issue
help wanted
question
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lvl0/incr#41
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
InlineFormPropshas three parallel optional callbacks (onPurchaseSuccess,onMilestoneSuccess,onPriceSuccess). As more form types are added this grows to n callbacks.Fix: Replace with
onSuccess: (type: 'purchase' | 'milestone' | 'price') => void. Parent dispatches based on type. Eliminates anonymous wrapper lambdas inInlineForm.tsxlines 43–62.Effort: S — do when
InlineFormis touched for another reason.