Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix bad link and remove unused headings #3114

Merged
merged 1 commit into from
Feb 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
docs: fix bad link and remove unused headings
  • Loading branch information
forresst authored Feb 23, 2023
commit 5665c2fa2430b076321aa30b627e2f9520907d90
4 changes: 1 addition & 3 deletions packages/docs/src/routes/qwikcity/action/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ contributors:

# `action$()`

Actions can be declared using the `action$()` function anywhere. Actions are similar to [loaders](/docs/qwik-city/loader$) but they are not executed during rendering. Instead, they are executed when called explicitly, ie they run after some user interaction, such as a click or a form submission.
Actions can be declared using the `action$()` function anywhere. Actions are similar to [loaders](/qwikcity/loader/) but they are not executed during rendering. Instead, they are executed when called explicitly, ie they run after some user interaction, such as a click or a form submission.

Actions are referenced using the `.use()` method from within a Qwik Component. The `use()` method returns `ActionStore` object with methods to trigger the action and get its state.

Expand Down Expand Up @@ -256,5 +256,3 @@ export default component$(() => {
```

The `action.formData` is specially useful as it allows to keep the form data filled by the user even on a page refresh, allowing to have a full SPA experience, even with JS disabled.

## Action