Project

General

Profile

Actions

Refactor #35065

open

Add React context to TableWrapper

Added by Jeremy Lenz almost 2 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Branch:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Prop drilling with TableWrapper and its children (MainTable, Search, TypeAhead, TypeAheadSearch, EmptyStateMessage, etc.) can be quite tedious. We should look into refactoring a bit and possibly use React context + useReducer (see https://reactjs.org/docs/hooks-faq.html#how-to-avoid-passing-callbacks-down)

The goals would be

1. reduce the amount of props that must be passed down through TableWrapper
2. cleaner, clearer, more maintainable code in TableWrapper

Actions #1

Updated by William Clark almost 2 years ago

  • Target version set to Katello Backlog
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF