File tree Expand file tree Collapse file tree 4 files changed +51
-99
lines changed
Expand file tree Collapse file tree 4 files changed +51
-99
lines changed Original file line number Diff line number Diff line change 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'
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
Original file line number Diff line number Diff line change 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" ;
33import { useForm } from "@tanstack/react-form" ;
44import type { FieldApi } from "@tanstack/react-form" ;
55
66function 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
108108const rootElement = document . getElementById ( "root" ) ! ;
109109
110- ReactDOM . createRoot ( rootElement ) . render ( < App /> ) ;
110+ createRoot ( rootElement ) . render ( < App /> ) ;
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments