Skip to content

[Content]: Solid-Router docs, redirect entry #1223

@atilafassina

Description

@atilafassina

📚 Subject area/topic

Router

📋 Page(s) affected (or suggested, for new content)

https://docs.solidjs.com/solid-router/reference/response-helpers/redirect

📋 Description of content that is out-of-date or incorrect

The Solid-Router entry for redirect does not have an example for revalidating queries upon redirecting.

This obscures a best practice when creating Auth in apps, for example. Because it's recommended to invalidate session-related queries upon logging out and logout usually triggers a redirect - it's a good pattern to have a handy example in our docs.

I noticed that when reviewing a PR for an auth example in SolidStart.

🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomershelp wantedLooking for assistance on this issueplannedFeatures or content that are planned but not yet in progress.solid-routerRelated to Solid RoutersolidstartRelated to SolidStart

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions