Omnistac / zedux

:zap: A Molecular State Engine for React
https://Omnistac.github.io/zedux/
MIT License
344 stars 7 forks source link

fix(atoms): improve atom searching #57

Closed bowheart closed 1 year ago

bowheart commented 1 year ago

Description

ecosystem.findAll() currently has a bug where it doesn't find a match if a string key with uppercase letters is passed. The simple workaround has been to .toLowerCase() the string before passing, but it's time we fixed it for real.

Also improve string searching in ecosystem.find() by returning the exact match if there is one, rather than the first match.