Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Add notice to validateProps
Browse files Browse the repository at this point in the history
  • Loading branch information
LPGhatguy committed Jan 28, 2020
1 parent 0c7f866 commit 7fae0de
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/api-reference.md
Expand Up @@ -560,6 +560,9 @@ Roact.setGlobalConfig({

See [setGlobalConfig](#roactsetglobalconfig) for more details.

!!! note
`validateProps` is a *static* lifecycle method. It does not have access to `self`, and must be a pure function.

!!! warning
Depending on the implementation, `validateProps` can impact performance. Recommended practice is to enable prop validation during development and leave it off in production environments.

Expand Down

0 comments on commit 7fae0de

Please sign in to comment.