Replies: 1 comment 2 replies
-
Pass custom props in table options itself, something similar to https://codesandbox.io/s/github/tannerlinsley/react-table/tree/master/examples/editable-data?file=/src/App.js:2540-2560 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The documentation shows examples on how to implement filters using
useFilters
. But I am running into a use case where I need to pass props in addition tofilterValue, preFilteredRows, setFilter etc...
. When I pass my props into myTextFilter
function the state value is incorrect? As I debug my implementationFoostate
initially has the correct state values prior hitting myTextFilter
function. But once I have entered myTextFilter
function myFooState
value is incorrect. Implementation shown bellow.My props state is incorrect. It should
{BarSearchBoxComponent: "", hello: "world"}
than{BarSearchBoxComponent: "" }
What is the best to way pass props to our custom filter functions?
Beta Was this translation helpful? Give feedback.
All reactions