useDevWarning
@astryxdesign/core v0.7.1 · useDevWarning
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
component | string | — | Component or hook name, used as the message prefix. Required. |
message | string | — | What went wrong and how to fix it. Required. |
condition | MaybeRefOrGetter<boolean> | true | Whether to warn. A plain boolean, a ref, or a getter all work. The first time it is true during a mount the warning fires once, and toggling it again in the same mount stays quiet. |
Returns
| Name | Type | Description |
|---|---|---|
| — | void | Nothing is returned. The watcher stops when the component or effect scope is disposed, and in a production build the function does nothing at all. |