[dx] Update NoRefAccessInRender error messages
ghstack-source-id: a5623aa4f29e15c89d2dfbe855bab9843e240a8a Pull Request resolved: https://github.com/facebook/react-forget/pull/2862
Joe Savona committed
Apr 18, 2024 at 09:21 UTC
e3d0f4bce842e8687f2bb2032b167549d30126fb
1 file changed
+1
-1
compiler/packages/babel-plugin-react-forget/src/Validation/ValidateNoRefAccesInRender.ts
+1
-1
@@ -120,7 +120,7 @@ function validateNoRefAccessInRenderImpl(
120
errors.push({
121
severity: ErrorSeverity.InvalidReact,
122
reason:
123
- "This function accesses a ref, which not be accessed during render. (https://react.dev/reference/react/useRef)",
123
+ "This function accesses a ref value (the `current` property), which may not be accessed during render. (https://react.dev/reference/react/useRef)",
124
loc: callee.loc,
125
description: `Function ${printPlace(callee)} accesses a ref`,
126
suggestions: null,