Skip to content

navigate on page load #118

@richardjelinek-fastest

Description

@richardjelinek-fastest

Navigate goes through this condition when redirecting in beforeLoad on the first page load:

if (
	navigationIndex !== currentNavigationIndex ||
	(fromBeforeLoadHook && pendingNavigationIndex + 1 !== currentNavigationIndex)
) {
	return;
}

Also navigate should have some return value/type so linters (ESLint) don't complain about throwing void.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions