1.1.2 • Published 2 years ago

flipper-plugin-mobx-action-debugger v1.1.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Mobx Action Debugger Flipper Plugin

Flipper plugin for MobX action debugging in React Native.

Installation

  1. Install mobx-action-flipper middleware and react-native-flipper in your React Native app:
yarn add mobx-action-flipper react-native-flipper
# for iOS
cd ios && pod install
  1. Middleware configuration:

Note: this function should be called only once at app startup. Further calls will have no effect.

import { debugMobxActions } from 'mobx-action-flipper';

// MobX stores:
const firstStore = new FirstStore();
const secondStore = new SecondStore();

// Any number of stores can be passed in as an object:
debugMobxActions({ firstStore, secondStore });

If your MobX stores are persisted via AsyncStorage, pass AsyncStorage as the second argument to be able to wipe persisted MobX data from Flipper:

import { debugMobxActions } from 'mobx-action-flipper';
import AsyncStorage from '@react-native-async-storage/async-storage';

// MobX stores:
const firstStore = new FirstStore();
const secondStore = new SecondStore();

debugMobxActions({ firstStore, secondStore }, AsyncStorage);
  1. Install flipper-plugin-mobx-action-debugger in Flipper desktop client:
Manage Plugins > Install Plugins > search "mobx-action-debugger" > Install
  1. Start your app and you should be able to see the debugger in Flipper.

Acknowledgement

This plugin was forked from flipper-plugin-mobx-debugger.

1.1.1

2 years ago

1.1.0

2 years ago

1.1.2

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago