mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[dx] Update NoRefAccessInRender error messages
ghstack-source-id: a5623aa4f29e15c89d2dfbe855bab9843e240a8a Pull Request resolved: https://github.com/facebook/react-forget/pull/2862
This commit is contained in:
+1
-1
@@ -120,7 +120,7 @@ function validateNoRefAccessInRenderImpl(
|
||||
errors.push({
|
||||
severity: ErrorSeverity.InvalidReact,
|
||||
reason:
|
||||
"This function accesses a ref, which not be accessed during render. (https://react.dev/reference/react/useRef)",
|
||||
"This function accesses a ref value (the `current` property), which may not be accessed during render. (https://react.dev/reference/react/useRef)",
|
||||
loc: callee.loc,
|
||||
description: `Function ${printPlace(callee)} accesses a ref`,
|
||||
suggestions: null,
|
||||
|
||||
Reference in New Issue
Block a user