Fixed circular dependencies
Summary: Fixed circular dependency warnings and removed some dead code while at it. Reviewed By: jknoxville Differential Revision: D20557313 fbshipit-source-id: 856c42113a9abe36d3e14f9d538eb40705ceb87f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
aa2879d6e8
commit
f2da075acc
@@ -466,10 +466,15 @@ export const selectDevice = (payload: BaseDevice): Action => ({
|
||||
payload,
|
||||
});
|
||||
|
||||
export const setStaticView = (payload: StaticView): Action => ({
|
||||
type: 'SET_STATIC_VIEW',
|
||||
payload,
|
||||
});
|
||||
export const setStaticView = (payload: StaticView): Action => {
|
||||
if (!payload) {
|
||||
throw new Error('Cannot set empty static view');
|
||||
}
|
||||
return {
|
||||
type: 'SET_STATIC_VIEW',
|
||||
payload,
|
||||
};
|
||||
};
|
||||
|
||||
export const preferDevice = (payload: string): Action => ({
|
||||
type: 'PREFER_DEVICE',
|
||||
|
||||
Reference in New Issue
Block a user