Reactotron: Feature Request: Search bar in the state tab

Created on 11 Jan 2019  路  4Comments  路  Source: infinitered/reactotron

I would like the ability to search in the State tab. The search bar itself is available in the Timeline tab which is very useful but the State tab doesn't have it.

The scenario is subscribing to the entire state tree and hence seeing lots of data. Being able to search makes it easy to locate the item we're interested in.

For example:

value: {
  device: {
    metadata: {
      api: {
         name: "",
         key: "",
      }
    }
  }
}

I want to find the metadata key so I search for metadata and Reactotron only shows the metadata part of the tree.

This could be solved by subscribing to more than one part of the tree. However, it means subscribing to a key everytime we want to find something, which is not ideal.

Happy New Year!
Thanks 馃憤

help wanted request

Most helpful comment

@rmevans9 I would like to try to implement this feature 馃檪
Could you give some hint on how I should start ?
Thanks 馃檹

All 4 comments

This seems like a reasonable request. I would accept something like this being added to reactotron but as you point out there is technically a workaround currently so this is probably not something I will take on in the short term. If anyone else wants to take it on I would gladly review it.

@rmevans9 I would like to try to implement this feature 馃檪
Could you give some hint on how I should start ?
Thanks 馃檹

Sure, You can see how we do the search bar on the timeline page. Once you get the UI in place the filtering should be something done in the page probably on the fly.

@rmevans9 Thanks for the hint 馃檪

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Kida007 picture Kida007  路  4Comments

davidjb picture davidjb  路  5Comments

AdrienLemaire picture AdrienLemaire  路  3Comments

lndgalante picture lndgalante  路  4Comments

tolu360 picture tolu360  路  5Comments