@conform-to/react
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -11,3 +11,3 @@ import { type FormId, type FieldName } from '@conform-to/dom'; | ||
export declare function useNoValidate(defaultNoValidate?: boolean): boolean; | ||
export declare function useForm<Schema extends Record<string, any>, FormValue = Schema, FormError = string[]>(options: Pretty<Omit<FormOptions<Schema, FormError, FormValue>, 'formId' | 'onSchedule'> & { | ||
export declare function useForm<Schema extends Record<string, any>, FormValue = Schema, FormError = string[]>(options: Pretty<Omit<FormOptions<Schema, FormError, FormValue>, 'formId'> & { | ||
/** | ||
@@ -14,0 +14,0 @@ * The form id. If not provided, a random id will be generated. |
@@ -7,3 +7,2 @@ 'use strict'; | ||
var react = require('react'); | ||
var reactDom = require('react-dom'); | ||
var context = require('./context.js'); | ||
@@ -42,3 +41,2 @@ | ||
var [context$1] = react.useState(() => context.createFormContext(_rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, formConfig), {}, { | ||
onSchedule: callback => reactDom.flushSync(callback), | ||
formId | ||
@@ -45,0 +43,0 @@ }))); |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"main": "index.js", | ||
@@ -34,12 +34,10 @@ "module": "index.mjs", | ||
"dependencies": { | ||
"@conform-to/dom": "1.0.3" | ||
"@conform-to/dom": "1.0.4" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18.2.64", | ||
"@types/react-dom": "^18.2.20", | ||
"@types/react": "^18.2.43", | ||
"react": "^18.2.0" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=18", | ||
"react-dom": ">=18" | ||
"react": ">=18" | ||
}, | ||
@@ -46,0 +44,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
2
2
88688
2108
+ Added@conform-to/dom@1.0.4(transitive)
- Removed@conform-to/dom@1.0.3(transitive)
- Removedreact-dom@18.3.1(transitive)
- Removedscheduler@0.23.2(transitive)
Updated@conform-to/dom@1.0.4