Closed lieut-data closed 3 years ago
/update-branch
@jgilliam17 This has to be reviewed in the corresponding webapp PR
@lieut-data I've added the Awaiting PR label since if this goes in first and someone updates their version of mattermost-redux in the webapp, then it'll break due to the change in parameters. One of the many reasons I'm looking forward to getting rid of mattermost-redux
Re-requesting dev review given the changes. Might be easiest to review with whitespace diff disabled. See https://github.com/mattermost/mattermost-webapp/pull/7648#issuecomment-797692291 for context.
It doesn't look like this change was pushed to the npm version 5.33.1. I'm still seeing redux-offline
in the dependencies list.
Summary
Follow the lead of https://github.com/mattermost/mattermost-mobile/pull/4120 and remove redux-offline. The library was responsible for automatically retrying select requests, but the vast majority of API calls remained unaffected. Removing the library simplifies the surface area of the Redux store and corresponding code. Note that this library is discrete from redux-persist, currently responsible for the magic of
storage.storage
and rehydrating previously saved drafts, etc.I've broken this PR into various discrete PRs that are worth reviewing independently. But to summarize the other changes that were tangled with removing this library:
remote-redux-devtools
withredux-devtools-extension
-- the former has support for React Native apps and routing requests through remotedev.io, but none of this is needed for the WebApp now that Mattermost Redux is unused by the mobile app.Ticket Link
Fixes: https://mattermost.atlassian.net/browse/MM-24009
Also, see https://github.com/mattermost/mattermost-webapp/pull/7648