Skip to content

The internal redirect to the default route on failure isn't invalidating the current updater function. #2505

@dead-claudia

Description

@dead-claudia

It's all caused by this line which isn't directly delegating to m.route.set, but is instead using an internal call skipping the reset logic.

It's not causing any apparent bugs, just taking up more space than necessary. The relevant variable set, lastUpdate could probably just be made a simple object token, so the closure isn't itself being directly persisted.

I've conservatively marked it as a bug, in case there is actual observably buggy behavior here.

Metadata

Metadata

Assignees

Labels

Area: CoreFor anything dealing with Mithril core itselfType: BugFor bugs and any other unexpected breakage

Type

No type
No fields configured for issues without a type.

Projects

Status
Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions