diff --git a/.vscode/settings.json b/.vscode/settings.json index 070d63c..e73292f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -38,6 +38,7 @@ "desaturate", "dont", "firstseen", + "initialising", "jwalelset", "languagedetector", "linkify", diff --git a/src/App.tsx b/src/App.tsx index 765c03e..b6be171 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -22,12 +22,16 @@ import Debug from "debug"; const debug = Debug("kristweb:app"); -export const store = initStore(); -export type AppDispatch = typeof store.dispatch; +export let store: ReturnType; function App(): JSX.Element { debug("whole app is being rendered!"); + if (!store) { + debug("initialising redux store"); + store = initStore(); + } + return }> diff --git a/src/global/compat/CompatCheckModal.tsx b/src/global/compat/CompatCheckModal.tsx index db77b0c..c56de57 100644 --- a/src/global/compat/CompatCheckModal.tsx +++ b/src/global/compat/CompatCheckModal.tsx @@ -23,7 +23,7 @@ {/* Missing feature list */}

- Missing feature{failedChecks.length > 1 && <>(s)}:  + Missing feature{failedChecks.length > 1 && <>s}:  {failedChecks.map((c, i, a) => ( {c.url