Skip to content

Fix eslint violations for ES UI JSON editor #73971

@cjcenizal

Description

@cjcenizal

Supports #49554

kibana/src/plugins/es_ui_shared/public/components/json_editor/json_editor.tsx
  55:33  error  React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead                                                                                                                                                     react-hooks/exhaustive-deps
  79:7   error  React Hook useCallback has missing dependencies: 'debouncedSetContent' and 'onUpdate'. Either include them or remove the dependency array. If 'onUpdate' changes too often, find the parent component that defines it and wrap that definition in useCallback  react-hooks/exhaustive-deps

kibana/src/plugins/es_ui_shared/public/components/json_editor/use_json.ts
  87:6  error  React Hook useEffect has missing dependencies: 'formatContent', 'isControlled', 'onUpdate', and 'validate'. Either include them or remove the dependency array. If 'onUpdate' changes too often, find the parent component that defines it and wrap that definition in useCallback  react-hooks/exhaustive-deps

Metadata

Metadata

Assignees

Labels

Team:Kibana ManagementDev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t//chore

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions