Project

General

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

Also available in: Atom PDF