1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-23 22:36:32 +02:00

Mobile: Improve sync by reducing how often note list is sorted

This commit is contained in:
Laurent Cozic
2024-01-03 18:02:05 +00:00
parent 164e53ee7d
commit f95ee689fd
4 changed files with 43 additions and 12 deletions

View File

@@ -40,7 +40,7 @@ import { Provider as PaperProvider, MD3DarkTheme, MD3LightTheme } from 'react-na
const { BackButtonService } = require('./services/back-button.js');
import NavService from '@joplin/lib/services/NavService';
import { createStore, applyMiddleware } from 'redux';
const reduxSharedMiddleware = require('@joplin/lib/components/shared/reduxSharedMiddleware');
import reduxSharedMiddleware from '@joplin/lib/components/shared/reduxSharedMiddleware';
const { shimInit } = require('./utils/shim-init-react.js');
const { AppNav } = require('./components/app-nav.js');
import Note from '@joplin/lib/models/Note';
@@ -149,7 +149,7 @@ const generalMiddleware = (store: any) => (next: any) => async (action: any) =>
const result = next(action);
const newState = store.getState();
await reduxSharedMiddleware(store, next, action);
await reduxSharedMiddleware(store, next, action, storeDispatch as any);
if (action.type === 'NAV_GO') Keyboard.dismiss();