Per-route custom contexts #6
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Chewing_Bever/lnm#6
Loading…
Add table
Add a link
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?
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.