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 +0 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1225,12 +1225,6 @@ function useUrlQuery() {
|
|
|
1225
1225
|
);
|
|
1226
1226
|
}
|
|
1227
1227
|
const reactRouterDomPluginConfig = reactRouterDomPlugin2.getConfig();
|
|
1228
|
-
const isInRouterContext = reactRouterDomPluginConfig.useInRouterContext();
|
|
1229
|
-
if (!isInRouterContext) {
|
|
1230
|
-
throw new Error(
|
|
1231
|
-
"`useUrlQuery` hook must be used inside a React Router context. Make sure your component is wrapped in a `<BrowserRouter>`, or another Router component."
|
|
1232
|
-
);
|
|
1233
|
-
}
|
|
1234
1228
|
const navigate = reactRouterDomPluginConfig.useNavigate();
|
|
1235
1229
|
const [searchParams] = reactRouterDomPluginConfig.useSearchParams();
|
|
1236
1230
|
const createSearchParams2 = reactRouterDomPluginConfig.createSearchParams;
|