lautr / strapi-plugin-duplicate-button

19 stars 8 forks source link

bug: resolving issue with missing export in strapi v4.15.4 #19

Closed PenguinOfWar closed 11 months ago

PenguinOfWar commented 11 months ago

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.

See discussion: strapi/strapi#18711

lautr commented 11 months ago

Thanks!