airbnb / react-with-styles-interface-aphrodite

Interface to use react-with-styles with Aphrodite
MIT License
54 stars 14 forks source link

Fix `this` references inside the aphroditeInterfaceFactory #38

Closed majapw closed 6 years ago

majapw commented 6 years ago

Due to the fact that aphroditeInterfaceFactory returns an arrow function, this did not reference what we expected it to and the attempts to have create reference the createLTR method (same for resolve and resolveLTR) were terribly broken.

It's unclear as to why this didn't break tests here and only became an issue when I was attempting to import this library elsewhere.

to: @ljharb @lencioni