Skip to content

Full-fledged vike.dev/hooks#lifecycle #2681

@brillout

Description

@brillout

Description

Allow the user to:

  • (Un-)select each hook individually. (So that the user can precisely simulate his app's hooks.)
  • Select the page's type: SSR | SSG | SPA.

Follow up of:

AI prompt

==========================================
Replace the Hooks environment toggle with a list of all hooks that can be (un)selected (by default the Standard hooks are selected).

The hooks +data and +onBeforeRender should appear three times:
+data.js | +data.client.js | +data.shared.js
+onBeforeRender.js | +onBeforeRender.client.js | +onBeforeRender.shared.js

(Not mutual exclusive, e.g. the user can select +data.js or/and +data.client.js)

Also add three preset buttons:

  • All => selects all hooks
  • None => unselects all hooks
  • Standard => only selects +data.js

Analyze the whole source code, and update the lists accordingly.

Always show Routing and renderPage() (they always exist).

Double check:

==========================================

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions