Files
react-fiber-traverse/TODO.md

1.0 KiB

TODOs

  1. Write docs and examples

  2. Reduce testcase boilerplate code for similar tests

  3. Publish to npm

  4. Build some demo

  5. Add findAllNodes helpers which searches all usages of the components - by name or class

  6. Allow using all methods without explicit root node. Find automatically, if not provided.

  7. Fix getRootFiberNodeFromDOM and related helpers -

    • ._internalRoot is not present is 16.0.0 but present in 16.9.0
    • actual node is available 2 levels nested inside this root node
    • add testcase to run across all versions of React 16.0.0 (dev+prod) and above (because internals change)
  8. Make it work with older React versions

  9. Make it work with non React-DOM renderers

  10. Add test - traverseGenerator - siblings were traversed earlier, not now. Check input config.

  11. Find node by CSS (query language) - Make it work for Class/Function reference also

  12. Allow easy way to continue FiberNode select with CSS selector for dom node (handling Fragments)

  13. Helper and filter by props and state