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

Use mobx-sync-lite #317

Merged
merged 1 commit into from
Nov 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion App.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import * as Font from 'expo-font';
import * as ScreenOrientation from 'expo-screen-orientation';
import { StatusBar } from 'expo-status-bar';
import { observer } from 'mobx-react-lite';
import { AsyncTrunk } from 'mobx-sync';
import { AsyncTrunk } from 'mobx-sync-lite';
import PropTypes from 'prop-types';
import React, { useContext, useEffect, useState } from 'react';
import { AppearanceProvider, useColorScheme } from 'react-native-appearance';
Expand Down
2 changes: 1 addition & 1 deletion models/ServerModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
import { action, autorun, computed, decorate, observable } from 'mobx';
import { ignore } from 'mobx-sync';
import { ignore } from 'mobx-sync-lite';
import { task } from 'mobx-task';

import { fetchServerInfo, getServerUrl } from '../utils/ServerValidator';
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"i18next": "^21.2.4",
"mobx": "^5.15.4",
"mobx-react-lite": "^2.2.2",
"mobx-sync": "^3.0.0",
"mobx-sync-lite": "^3.1.0",
"mobx-task": "^2.0.1",
"normalize-url": "^7.0.2",
"prop-types": "^15.7.2",
Expand Down
2 changes: 1 addition & 1 deletion stores/MediaStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
import { action, computed, decorate, observable } from 'mobx';
import { ignore } from 'mobx-sync';
import { ignore } from 'mobx-sync-lite';

import { ticksToMs } from '../utils/Time';

Expand Down
2 changes: 1 addition & 1 deletion stores/RootStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import 'react-native-get-random-values';

import { action, decorate, observable } from 'mobx';
import { ignore } from 'mobx-sync';
import { ignore } from 'mobx-sync-lite';
import { v4 as uuidv4 } from 'uuid';

import MediaStore from './MediaStore';
Expand Down
2 changes: 1 addition & 1 deletion stores/ServerStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
import { action, decorate, observable } from 'mobx';
import { format } from 'mobx-sync';
import { format } from 'mobx-sync-lite';
import { task } from 'mobx-task';

import ServerModel from '../models/ServerModel';
Expand Down