Latest versions of strapi (v4.15.2 onwards) have removed the export for usePluginsQueryParams that this library depended on. The strapi team have recommended in light of this change that plugins not utilise internal strapi exports in this way as they cannot guarantee that that they will be consistently available in future versions.
This PR addresses the issue by swapping usePluginsQueryParams for useLocation from react-router-dom@v5.
Latest versions of strapi (v4.15.2 onwards) have removed the export for
usePluginsQueryParams
that this library depended on. The strapi team have recommended in light of this change that plugins not utilise internal strapi exports in this way as they cannot guarantee that that they will be consistently available in future versions.This PR addresses the issue by swapping
usePluginsQueryParams
foruseLocation
fromreact-router-dom@v5
.See discussion: strapi/strapi#18711