Skip to content

fix/identity-integration #63

fix/identity-integration

fix/identity-integration #63

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / Lint failed Oct 20, 2023 in 0s

Errors 1, Warnings 0

Found 1 errors and 0 warnings

Annotations

Check failure on line 18 in packages/identity-integration/src/ui/flow-messages.component.tsx

See this annotation in the file changed.

@github-actions github-actions / Lint

(react-hooks/exhaustive-deps): React Hook useMemo has a missing dependency: 'messages'. Either include it or remove the dependency array.

React Hook useMemo has a missing dependency: 'messages'. Either include it or remove the dependency array.
Raw output
  15 |   const { flow } = useFlow()
  16 |   const messages = useMemo(() => flow?.ui?.messages || [], [flow])
> 17 |   const ruMessages = useMemo(() => localizedMessages(messages) || [], [flow])
     |                                                                       ^
  18 |
  19 |   if (typeof children === 'function' && messages) {
  20 |     return children(messages, ruMessages)