While working on a store with some updating linting rules, I found a function that linting wanted it to be a static function, not a class function. Sure, that makes sense, it isn’t interacting with the store. Code updated, linting happy.
Wait, now the function doesn’t work on the site. Ah, scope changed, of course, it needs to be a class function. And now linting isn’t happy. Back to where I started!
Once I thought about the issue for a bit, I realized it’s because of placement. That function didn’t need to be in a store, because it wasn’t interacting with the store any more. Solution? Move it to a standard JavaScript helper functions file, and update all of the imports and function calls referencing it. Reflux no longer needed.