reactotron-apisauce v3.0.4
reactotron-redux
Converts responses sent via apisauce into Reactotron.
Installing
npm i --save-dev reactotron-apisauce
Configuring
In the file that you create your Redux store, add these two imports at the top:
// in your reactotron config (where you setup Reactotron) add this as a plugin.
import tronsauce from 'reactotron-apisauce'
// then plug it in when you configure Reactotron.
Reactotron
.configure()
.use(tronsauce()) // <-- here we go!!!
.connect()
// meanwhile, in a different file, when you get a response back
// from apisauce, pass it `Reactotron.apisauce(myAwesomeResponse)`
Reactotron.apisauce(theResponseWeJustTalkedAbout)
// Apisauce has a feature where you can attach a handler to watch
// all requests/response flowing through your api. You can hook this up:
api.addMonitor(Reactotron.apisauce)
// or if you just wanted to track on 500's
api.addMonitor(response => {
if (response.problem === 'SERVER_ERROR')
Reactotron.apisauce(response)
})
// see https://github.com/skellock/apisauce for more details.
3 months ago
3 months ago
3 months ago
5 months ago
5 months ago
7 months ago
7 months ago
6 months ago
8 months ago
7 months ago
11 months ago
11 months ago
10 months ago
10 months ago
10 months ago
10 months ago
8 months ago
8 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago