hedgedoc/frontend
Erik Michelson f16b3c0fe6 fix(redux): avoid state mutation in history redux
When updating the data of a note in the redux, the old state element gets manipulated and will be dispatched again into the state.
Redux is not optimized for external state-mutations and has some weird side-effects in that case and sometimes throws an error.
This commit fixes the problem by using a clone of the entry.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-01-09 19:52:21 +01:00
..
.netlify fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
cypress fix(frontend): Fix history e2e tests 2022-12-18 20:54:27 +01:00
docker chore(deps): update node.js to b3f383c 2023-01-07 07:33:19 +00:00
global-styles fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
locales fix(i18n): clarify where to find /features for new users 2022-12-30 10:38:58 +01:00
netlify fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
public fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
src fix(redux): avoid state mutation in history redux 2023-01-09 19:52:21 +01:00
.dockerignore fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
.dockerignore.license fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
.editorconfig fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
.env.development fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
.env.development.license fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
.env.production fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
.env.production.license fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
.env.test fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
.env.test.license fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
.eslintrc.js feat(package): adjust packages to workspaces 2022-12-04 20:59:46 +01:00
.gitignore fix(frontend): remove redundant rules from gitignore 2022-11-20 21:29:17 +01:00
.nvmrc fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
.nvmrc.license fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
.prettierignore fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
.prettierignore.license fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
.prettierrc.json fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
.prettierrc.json.license fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
CHANGELOG.md fix(i18n): clarify where to find /features for new users 2022-12-30 10:38:58 +01:00
CONTRIBUTING.md fix(frontend): Remove redundant information from CONTRIBUTING.md 2022-11-20 21:50:10 +01:00
cypress.config.ts fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
jest.config.ts fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
netlify.toml fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
next-env.d.ts fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
next-env.d.ts.license fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
next.config.js fix(frontend): migrate to new wasm loading method 2022-12-28 19:20:44 +01:00
package.json fix(deps): update dependency i18next to v22.4.9 2023-01-08 20:08:23 +01:00
package.json.license fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
renovate.json fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
renovate.json.license fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00
tsconfig.json feat(package): adjust packages to workspaces 2022-12-04 20:59:46 +01:00
tsconfig.json.license fix: Move content into to frontend directory 2022-11-20 19:48:40 +01:00