react-better-html 1.1.219 → 1.1.220

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1296,12 +1296,6 @@ function useUrlQuery() {
1296
1296
  );
1297
1297
  }
1298
1298
  const reactRouterDomPluginConfig = reactRouterDomPlugin2.getConfig();
1299
- const isInRouterContext = reactRouterDomPluginConfig.useInRouterContext();
1300
- if (!isInRouterContext) {
1301
- throw new Error(
1302
- "`useUrlQuery` hook must be used inside a React Router context. Make sure your component is wrapped in a `<BrowserRouter>`, or another Router component."
1303
- );
1304
- }
1305
1299
  const navigate = reactRouterDomPluginConfig.useNavigate();
1306
1300
  const [searchParams] = reactRouterDomPluginConfig.useSearchParams();
1307
1301
  const createSearchParams2 = reactRouterDomPluginConfig.createSearchParams;