You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not too happy with the getProp name, but couldn't come up with anything better.
I like how it's generalized, when I have time I can add this, will name it getProp or get, and we can rename it easily.
Also, should I handle it without errors (NO_OP), eg if theme.something.else is undefined, or to throw? I personally like no_op but it's harder to debug (though safer to use in production).
Hello there!
This package definitely helps a lot (I made those helpers by hand before figuring out there is a package).
Here's an idea
we can make shorthand because 90% of the time (at least for me) you just want to grab a variable from theme, something like jsonPath or lodash/get:
If you like the idea I can definitely make a PR.
Thanks in advance!
The text was updated successfully, but these errors were encountered: