Add method field to persistedStateReducer
Summary: When sending a message from the mobile side, you call something like: `send(method: string, params: Object)` But when receiving it in the reducer, you only get the params. Adding method so you can distinguish them. Reviewed By: passy Differential Revision: D10447890 fbshipit-source-id: f1fe925e82355866f86b322ecd3c72c604ae86af
This commit is contained in:
committed by
Facebook Github Bot
parent
48f9b350fe
commit
d48f93edea
@@ -121,6 +121,7 @@ export default class extends FlipperPlugin<State, *, PersistedState> {
|
||||
|
||||
static persistedStateReducer = (
|
||||
persistedState: PersistedState,
|
||||
method: string,
|
||||
data: Request | Response,
|
||||
): PersistedState => {
|
||||
const dataType: 'requests' | 'responses' = data.url
|
||||
|
||||
Reference in New Issue
Block a user