This is my go-to script when there are SQL performance issues. Sadly, I can't remember where I found it.
When you have an API that doesn't start and doesn't show an error log.
web.config and set the
ASPNETCORE_DETAILEDERRORS environment variable to
You want to periodically the refresh data in the NgRx Store.
Create a NgRx Effect that retrieves the data via a service every x minutes, this can be done with the RxJS timer operator.
I want to delete a property from an object in a pure (immutable) way.
Use a destructuring assignment to assign the to be removed property to a variable, while cloning the "rest" properties to a new variable.
_ is used to prevent a linter giving the warning "variable is declared but its value is never read".
For more examples see Destructuring assignment on MDN
An action to fetch multiple entities at once, but the service has only an endpoint to fetch one entity at a time.
Use the RxJS merge operator to flatten all request streams and concurrently emit all values to a single output stream.