redux-devtools
redux-devtools copied to clipboard
Search for entities
We are using the devtools in our project and they are really helpfull. But one thing is missing from my point of view: The possibility to search for an entity. We have e.g. one EntityState with roundabout 600 entities. It would be very helpfull if I could just enter the ID of a specific one to find it faster.
I think the best way to implement it is to add search functionality to redux-devtools-inspector-monitor right-side content.
I do not think that it makes sense in this case to use a monitor like we did for rtk-query-monitor
.
I think I can help in this. I had implemented a search for my personal needs using jsonpath-plus and regex(broken).
Here's a sample run on https://drfhc8.csb.app/
Where original state is
If it's acceptable, I'll think on working on it. It is functional but needs work in
- Refactoring.
- jsonpath-plus uses
eval
for complex expressions, which doesn't work here (and is unsafe). So, need to see how to fix that.
I plan to also implement a search feature. It will maybe happen during a hackathon. Is there a chance that this feature will be accpeted as a PR?
Feel free to submit a PR. I don't have much time to work on redux-devtools, so if the PR is small and it's easy to tell it's implemented correctly, then it's more likely to get accepted and merged in.