Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce state persisted by redux-persist (reopen) #310

Merged
merged 3 commits into from
Mar 18, 2024

Conversation

Arnei
Copy link
Member

@Arnei Arnei commented Mar 18, 2024

One of the reasons redux-persist is causing us so many issues
is that we persist the whole store. This means we persist
a lot of information we really should not, either because it's
info that should get cleared on page reload or because we
fetch the info on page load anyway (this is not an offline app).

This introduces redux-persist whitelisting, so we only persist
what we explicitely declare to. From what I gather, we want
to persist table filters and column arrangement, so state
pertaining to that should be whitelisted.

This also fixes a faulty import statement, but it likely won't
have any noticable effect (since autoMergeLevel2 is not deep
enough of a level to affect our nested states).

Arnei added 2 commits March 18, 2024 10:30
One of the reasons redux-persist is causing us so many issues
is that we persist the whole store. This means we persist
a lot of information we really should not, either because it's
info that should get cleared on page reload or because we
fetch the info on page load anyway (this is not an offline app).

This introduces redux-persist whitelisting, so we only persist
what we explicitely declare to. From what I gather, we want
to persist table filters and column arrangement, so state
pertaining to that should be whitelisted.

This also fixes a faulty import statement, but it likely won't
have any noticable effect (since autoMergeLevel2 is not deep
enough of a level to affect our nested states).
@Arnei Arnei added the type:bug Something isn't working label Mar 18, 2024
@Arnei Arnei marked this pull request as draft March 18, 2024 09:35
@Arnei Arnei marked this pull request as ready for review March 18, 2024 09:39
@Arnei Arnei merged commit db5938d into opencast:admin-ui-picard Mar 18, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant