@datawheel/data-explorer 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/dist/main.mjs +6 -11
  2. package/package.json +1 -1
package/dist/main.mjs CHANGED
@@ -6181,9 +6181,13 @@ function AppProviders({ children }) {
6181
6181
  const updateUrl = useUpdateUrl();
6182
6182
  const queryItem = useSelector$1(selectCurrentQueryItem);
6183
6183
  const actions2 = useActions();
6184
- console.log(defaultLocale);
6184
+ const isInitialMount = useRef(true);
6185
6185
  const { translate: t, locale, setLocale } = useTranslation();
6186
6186
  useEffect(() => {
6187
+ if (isInitialMount.current) {
6188
+ isInitialMount.current = false;
6189
+ return;
6190
+ }
6187
6191
  actions2.updateLocale(defaultLocale);
6188
6192
  updateUrl({ ...queryItem, params: { ...queryItem.params, locale: defaultLocale } });
6189
6193
  setLocale(defaultLocale);
@@ -6195,16 +6199,7 @@ function AppProviders({ children }) {
6195
6199
  serverConfig,
6196
6200
  defaultDataLocale
6197
6201
  },
6198
- /* @__PURE__ */ React13.createElement(
6199
- QueryProvider,
6200
- {
6201
- defaultCube,
6202
- serverURL,
6203
- locale: defaultLocale,
6204
- defaultDataLocale
6205
- },
6206
- children
6207
- )
6202
+ /* @__PURE__ */ React13.createElement(QueryProvider, { defaultCube, serverURL }, children)
6208
6203
  )));
6209
6204
  }
6210
6205
  var defaultTourConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datawheel/data-explorer",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "main": "./dist/main.mjs",
5
5
  "types": "./dist/main.d.mts",
6
6
  "files": [