Per-route custom contexts #6
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Chewing_Bever/lnm#6
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
The current design requires defining a single custom route format that's used for all routes. Usually separate types of routes however do not require the same kinds of contexts; some routes don't even need a custom context at all.
A better design might be to define the context callbacks on a per-route level instead of globally, allowing the user to specify as many types of contexts as needed. This would also simplify the reset functions, as they no longer need to account for all the various parts of an agglomerated custom context.