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

fix(docs): typo in qwikcity -> Validator docs #5444

Merged
merged 3 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Validators | QwikCity
contributors:
- wtlin1228
- harishkrishnan24
---

# Data Validators
Expand Down Expand Up @@ -75,7 +76,7 @@ export const useAction = routeAction$(
);
```

If `validator3` has a `data` property in its success return object, this data will be passed to the next validator, `validator2`. If your don't want to override the original submitted data, avoid putting the `data` property in the success return object.
If `validator3` has a `data` property in its success return object, this data will be passed to the next validator, `validator2`. If you don't want to override the original submitted data, avoid putting the `data` property in the success return object.

```tsx /message: "hi, I am validator3"/#a /message: "hi, I am validator2"/#b /message: "hi, I am validator1"/#c
export const useAction = routeAction$(
Expand Down Expand Up @@ -174,4 +175,4 @@ export const useAction = routeAction$(
validator$(/*...*/),
validator$(/*...*/),
);
```
```
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { component$, useVisibleTask$, useSignal } from '@builder.io/qwik';

export default component$(() => {
const aHref = useSignal<Element>();
useVisibleTask$(({cleanup}) => {
useVisibleTask$(({ cleanup }) => {
const handler = (event: Event) => {
event.preventDefault();
window.open('http://qwik.builder.io');
Expand Down