Removing the logger
Previously, React Query logged failed queries to the console in the production environment. This quickly became an issue because our application users could see implementation detail errors that they shouldn’t be aware of. To deal with this issue, the ability to create a custom logger was added, where you could override what React Query used for logging.
Recently, React Query removed all logging in production and improved their development logs. Given this scenario, in v5, logger
was no longer needed and was removed.
From now on, console
will be used as the default logger.
Now that you know this change, let's see the first renaming of v5 – loading
to pending
.