@@ -206,7 +206,8 @@ export const MountedMessageView = Component.make("MountedMessage")(
|
|||||||
|
|
||||||
Use `Component.useOnMount` when the component needs a value produced by an
|
Use `Component.useOnMount` when the component needs a value produced by an
|
||||||
Effect during its first render. The value is then cached for the component
|
Effect during its first render. The value is then cached for the component
|
||||||
instance.
|
instance. You can also use it to set up scoped component logic, subscriptions,
|
||||||
|
or resources that should live for the lifetime of that component instance.
|
||||||
|
|
||||||
Use `Component.useOnChange` when render needs the value computed by
|
Use `Component.useOnChange` when render needs the value computed by
|
||||||
scoped work that depends on changing inputs. When a dependency changes, React
|
scoped work that depends on changing inputs. When a dependency changes, React
|
||||||
|
|||||||
Reference in New Issue
Block a user