Automattic / bugomattic

Bugomattic is a tool that guides bug reporters to the right actions within large, complex organizations
GNU General Public License v2.0
6 stars 0 forks source link

Move reducer creation into function #11

Closed dpasque closed 1 year ago

dpasque commented 1 year ago

What Does This PR Add/Change?

In short, fixes a problem with how module importing and resolution was working for the app directory.

We were mixing two things which was a bad combo...

This means if anyone imported anything from the app index, they were running core redux code at import time. This lead to some weird race conditions where redux thought it was getting undefined reducers. This didn't cause production bugs, just console errors, but still pointed to a troubling cocktail.

We're going to keep using the index convention for now, which means that all code in indexed directories should be thoughtfully wrapped (unless it's just exporting constant static values, e.g.)

Testing Instructions

Issues

Related to #
Closes #10