add support for device plugin import / export
Summary: Sandy device plugins weren't exported till now (the only stateful plugin so far was Logs, but logs were stored hardcoded on the device rather than using the plugin export mechanisms). This diff makes sure that SandyDevicePlugins will be exported as well if they are persistable. Reviewed By: nikoant Differential Revision: D22724822 fbshipit-source-id: a10354a9c7e02f3e696d0cdda0f2c6be6f5ac61e
This commit is contained in:
committed by
Facebook GitHub Bot
parent
e1daa449ba
commit
32bde8cace
@@ -791,7 +791,10 @@ export function importDataToStore(source: string, data: string, store: Store) {
|
||||
});
|
||||
return;
|
||||
}
|
||||
archivedDevice.loadDevicePlugins(store.getState().plugins.devicePlugins);
|
||||
archivedDevice.loadDevicePlugins(
|
||||
store.getState().plugins.devicePlugins,
|
||||
device.pluginStates,
|
||||
);
|
||||
store.dispatch({
|
||||
type: 'REGISTER_DEVICE',
|
||||
payload: archivedDevice,
|
||||
|
||||
Reference in New Issue
Block a user