You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* React.promise
* React.useTransition
* React.useActionState
* React.useOptimistic
* React.use
* React.act
* React.useDeferredValue now takes initial value
* ReactDOM: ref cleanup function
* ReactDOM: Resource Preloading APIse
* ReactDOM.useFormStatus
* JS output changes
* Add external for basic support for formAction
* Add `usePromise` for `use(promise)`
`use(context)` seems to exactly replicate the `useContext(context)`
logic, and we want to maximize retro-compability (ie. not switch from
`useContext` to `use` for that under the hood).
simply adding `usePromise(promise)` seems to be the simplest, least
invasive way to add the functionality.
* proposal: make FormData more usable to get values
this **kinda** goes against the zero-cost philosophy, but I don't see a
world where users would not have to reimplement those.
* useOptimistic optionnal updateFn
* dom static prerender and prerenderToNodeStream
---------
Co-authored-by: Matthias Le Brun <[email protected]>
Co-authored-by: Freddy Harris <[email protected]>
/** If true, this means the parent <form> is pending submission. Otherwise, false. */
96
+
pending: bool,
97
+
/** An object implementing the FormData interface that contains the data the parent <form> is submitting. If there is no active submission or no parent <form>, it will be null. */
98
+
data: FormData.t,
99
+
/** This represents whether the parent <form> is submitting with either a GET or POST HTTP method. By default, a <form> will use the GET method and can be specified by the method property. */
100
+
method: [#get | #post],
101
+
/** A reference to the function passed to the action prop on the parent <form>. If there is no parent <form>, the property is null. If there is a URI value provided to the action prop, or no action prop specified, status.action will be null. */
/** Required with stylesheets. Says where to insert the stylesheet relative to others. Stylesheets with higher precedence can override those with lower precedence. */
200
+
precedence?: [#reset | #low | #medium | #high],
201
+
/** The CORS policy to use. It is required when as is set to "fetch". */
202
+
crossOrigin?: crossOrigin,
203
+
/** The Referrer header to send when fetching. */
204
+
referrerPolicy?: referrerPolicy,
205
+
/** A cryptographic hash of the resource, to verify its authenticity. */
206
+
integrity?: string,
207
+
nonce?: string,
208
+
/** Suggests a relative priority for fetching the resource. */
209
+
fetchPriority?: fetchPriority,
210
+
}
211
+
212
+
/** `preinit` lets you eagerly fetch and evaluate a stylesheet or external script. */
0 commit comments