What happens when your project manager asks you to reskin the app?
We’ve been able to write styles inline since the 90’s but we stopped doing it for a good reason.
You can get similarly small CSS files using something like CSS Modules and taking advantage of its composition capabilities. The CSS on…
Why are you submitting an API request for every action?
I have an app where I save all actions to a MongoDB, but I debounce them for 10 seconds in some custom middleware. The actions still go to the redux store, but they get queued up for 10 seconds before being sent to the server.
Why do you prefer pipe?
It seems like everyone recommends compose because it’s more like “real” functional languages.
Are there situations where one is more appropriate than the other, or is it just personal preference?
The Typescript compiler assumes that each .ts file corresponds to a single module, and, as far as I’m aware, there’s no way to change this.
It uses top level exports so generated declaration files at least don’t pollute the global namespace, but you’ll get a separate file for each module.