Skip to content

Commit 707ff5d

Browse files
authored
chore: fix errrors in examples, remove unneeded CI steps (#457)
1 parent 826c58d commit 707ff5d

File tree

4 files changed

+51
-99
lines changed

4 files changed

+51
-99
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ jobs:
3636
cache: 'pnpm'
3737
- name: Install dependencies
3838
run: pnpm install --no-frozen-lockfile
39-
- name: Run Tests
40-
uses: nick-fields/retry@v2.8.3
41-
with:
42-
command: pnpm run test:ci --base=${{ github.event.before }}
43-
timeout_minutes: 10
44-
max_attempts: 3
4539
- name: Publish
4640
run: |
4741
git config --global user.name 'Tanner Linsley'
@@ -54,5 +48,3 @@ jobs:
5448
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5549
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5650
TAG: ${{ inputs.tag }}
57-
- name: Upload coverage to Codecov
58-
uses: codecov/codecov-action@v3

examples/react/simple/src/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import React from "react";
2-
import ReactDOM from "react-dom/client";
1+
import * as React from "react";
2+
import { createRoot } from "react-dom/client";
33
import { useForm } from "@tanstack/react-form";
44
import type { FieldApi } from "@tanstack/react-form";
55

66
function FieldInfo({ field }: { field: FieldApi<any, any> }) {
77
return (
88
<>
9-
{field.state.meta.touchedError ? (
10-
<em>{field.state.meta.touchedError}</em>
9+
{field.state.meta.touchedErrors ? (
10+
<em>{field.state.meta.touchedErrors}</em>
1111
) : null}
1212
{field.state.meta.isValidating ? "Validating..." : null}
1313
</>
@@ -107,4 +107,4 @@ export default function App() {
107107

108108
const rootElement = document.getElementById("root")!;
109109

110-
ReactDOM.createRoot(rootElement).render(<App />);
110+
createRoot(rootElement).render(<App />);

examples/vue/simple/src/FieldInfo.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ const props = defineProps<{
77
</script>
88

99
<template>
10-
<em v-if="props.state.meta.touchedError">{{
11-
props.state.meta.touchedError
12-
}}</em>
10+
<em v-for="error of props.state.meta.touchedErrors">{{ error }}</em>
1311
{{ props.state.meta.isValidating ? 'Validating...' : null }}
1412
</template>

0 commit comments

Comments
 (0)