LearnNewsExamplesServices
Frontmatter
id4866
titlecontroller.Base: onConstructed() => pass the old hash value
stateClosed
labels
enhancementstale
assigneestobiu
createdAtSep 7, 2023, 11:02 PM
updatedAtSep 13, 2024, 4:29 AM
githubUrlhttps://github.com/neomjs/neo/issues/4866
authortobiu
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtSep 13, 2024, 4:29 AM

controller.Base: onConstructed() => pass the old hash value

Closed v8.1.0 enhancementstale
tobiu
tobiu commented on Sep 7, 2023, 11:02 PM

this would be a very useful enhancement for controllers, which get created at run-time, where a hash-change has already happened. we need to delay this one a bit though, since it would have a pretty big impact on our current client-project, which needs to get prepared for the change first.

old code:

currentHash && this.onHashChange(currentHash, null);

new code:

currentHash && this.onHashChange(currentHash, HashHistory.second());
tobiu added the enhancement label on Sep 7, 2023, 11:02 PM
tobiu assigned to @tobiu on Sep 7, 2023, 11:02 PM