File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -491,7 +491,12 @@ Re-runs the `promiseFn` when this callback returns truthy (called on every updat
491491
492492> ` any | Error `
493493
494- Initial state for ` data ` or ` error ` (if instance of Error); useful for server-side rendering.
494+ Initial state for ` data ` or ` error ` (if instance of Error); useful for server-side rendering. When an ` initialValue ` is
495+ provided, the ` promiseFn ` will not be invoked on first render. Instead, ` status ` will be immediately set to ` fulfilled `
496+ or ` rejected ` and your components will render accordingly. If you want to trigger the ` promiseFn ` regardless, you can
497+ call ` reload() ` or use the ` watch ` or ` watchFn ` option.
498+
499+ > Note that ` onResolve ` or ` onReject ` is not invoked in this case and no ` promise ` prop will be created.
495500
496501#### ` onResolve `
497502
You can’t perform that action at this time.
0 commit comments