Project

General

Custom queries

Profile

Actions

Refactor #35065

open

Add React context to TableWrapper

Added by Jeremy Lenz almost 3 years ago. Updated 9 months 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 3 years ago

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

Updated by Ian Ballou 9 months ago

  • Target version deleted (Katello Backlog)
Actions

Also available in: Atom PDF