Multiple <Table /> components in custom ListView display same global data instead of filtered props #16208
-
|
Hi everyone, I am new to Payload CMS and React, and I'm struggling with customizing the List View. My Goal: The Problem: Interestingly, if I stringify the data (JSON.stringify(items)), it shows the correct filtered items, but the It seems like the Questions: Why does the How can I "isolate" or "reset" the context for each table so they respect the filtered data while keeping standard features like links and column formatting? Is there a recommended way to achieve grouping in Payload CMS without completely rewriting the table logic from scratch? Since this is my first experience with Payload, I might be missing something fundamental about how Providers work here. Any help would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hey @shestakov2103 you might want to look into With it you can do something like |
Beta Was this translation helpful? Give feedback.
Hey @shestakov2103 you might want to look into
groupByif you haven't yet! This enables grouping in the list view UI usingfindDistinctunder the hood. It's marked as experimental, but it's the supported path.With it you can do something like