Gathering detailed insights and metrics for flipper-plugin-reselect-debugger
Gathering detailed insights and metrics for flipper-plugin-reselect-debugger
Gathering detailed insights and metrics for flipper-plugin-reselect-debugger
Gathering detailed insights and metrics for flipper-plugin-reselect-debugger
Flipper plugin for Reselect in React Native
npm install flipper-plugin-reselect-debugger
Typescript
Module System
57.6
Supply Chain
82.7
Quality
72.8
Maintenance
100
Vulnerability
98.6
License
TypeScript (95.06%)
JavaScript (4.94%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
10 Stars
27 Commits
2 Forks
3 Watchers
1 Branches
1 Contributors
Updated on Oct 05, 2022
Latest Version
1.0.10
Package Id
flipper-plugin-reselect-debugger@1.0.10
Unpacked Size
1.11 MB
Size
222.38 kB
File Count
43
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
20
flipper-plugin-reselect-debugger
allows you debug Reselect selectors inside Flipper
react-native-flipper
in your React Native app:1yarn add reselect-debugger-flipper react-native-flipper 2# for iOS 3cd ios && pod install
1import { createStore, applyMiddleware } from 'redux'; 2 3import * as selectors from 'src/redux/selectors'; 4 5const middlewares = [/* other middlewares */]; 6 7const store = createStore(RootReducer, applyMiddleware(...middlewares)); 8 9if (__DEV__) { 10 const reselectDebugger = require('reselect-debugger-flipper'); 11 reselectDebugger.configure({ 12 selectors 13 }); 14} 15 16return store;
Manage Plugins > Install Plugins > search "reselect-debugger" > Install
By default, outputs only the recomputations of the selector. If you use will pass stateGetter
parameter, it will output the selector's input and output values.
1import { createStore, applyMiddleware } from 'redux'; 2 3import * as selectors from 'src/redux/selectors'; 4 5const middlewares = [/* other middlewares */]; 6 7const store = createStore(RootReducer, applyMiddleware(...middlewares)); 8 9if (__DEV__) { 10 const reselectDebugger = require('reselect-debugger-flipper'); 11 reselectDebugger.configure({ 12 selectors, 13 14 /* for calculate input / outputs of selectors */ 15 stateGetter: store.getState, 16 }); 17} 18 19return store;
You can keep track of how your selectors are recalculated while the application is running.
This is available for Redux and implemented with a middelware connection.
Every time you dispatch an action, selectors will be re-run and analyzed to see if there was a recalculation. If recalculation has occurred, a property will be available that displays the last action due to which the recalculation occurred.
1import { createStore, applyMiddleware } from 'redux'; 2 3const middlewares = [/* other middlewares */]; 4 5if (__DEV__) { 6 const reselectDebugger = require('reselect-debugger-flipper'); 7 8 /* for enable reselect debugger live updates */ 9 middlewares.push(reselectDebugger.reduxMiddleware); 10}
You can give your selectors a special prefix that will appear in the graph.
It can be done with using namespaceSelectors
function.
1import { createStore, applyMiddleware } from 'redux'; 2 3import * as selectors from 'src/redux/selectors'; 4import * as otherSelectors from 'src/redux/otherSelectors'; 5 6const configureStore = () => { 7 8 let reselectDebugger; 9 if (__DEV__) { 10 reselectDebbuger = require('reselect-debugger-flipper'); 11 } 12 13 const middlewares = [/* other middlewares */]; 14 15 if (__DEV__) { 16 /* for enable reselect debugger live updates */ 17 middlewares.push(reselectDebugger.reduxMiddleware); 18 } 19 20 const store = createStore(RootReducer, applyMiddleware(...middlewares)); 21 22 if (__DEV__) { 23 reselectDebugger.configure({ 24 { 25 ...reselectDebugger.namespaceSelectors(selectors, 'important'), 26 ...reselectDebugger.namespaceSelectors(otherSelectors, 'other') 27 }, 28 29 /* for calculate input / outputs of selectors */ 30 stateGetter: store.getState, 31 }); 32 } 33}
This plugin is inspired by reselect-tools which only for Web.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/27 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
37 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More