Exception handling in selectorGraph()
skortchmark9 opened this issue · comments
Originally suggested by @trungdq88 on #5
Exception handling: Sometimes it shows "Could not load selector graph", I figure out it is because RESELECT_TOOLS.selectorGraph() was throwing exceptions (null handling issue in selector logic), after fixing it all, I could get the graph rendered nicely. To improve this, I we should have a try/catch in this line https://github.com/skortchmark9/reselect-tools/blob/master/src/index.js#L59 and then in the output panel, we can show the exception detail.
This will make the tool more robust and useful.
Fixed in #13