Ignore persistToLocalStorage in headless mode
Summary: In a headless mode we do not have access to local storage. As a result, headless plugins that try to use `persistToLocalStorage` option crash. We should ignore the option for these plugins for now and add a way to persist the plugin state to the disk in a headless mode in the future. CHANGELOG: Ignore persistToLocalStorage in headless mode Resolves https://github.com/facebook/flipper/issues/4190 Reviewed By: lblasa Differential Revision: D40341873 fbshipit-source-id: 40774c0024f79cf1652f24146fd16f6a101ca99e
This commit is contained in:
committed by
Facebook GitHub Bot
parent
7d5cfc82ea
commit
27fd60b659
@@ -54,6 +54,8 @@ export {createDataSource} from './state/createDataSource';
|
||||
|
||||
export {
|
||||
createState,
|
||||
_setAtomPersistentStorage,
|
||||
AtomPersistentStorage,
|
||||
Atom,
|
||||
isAtom,
|
||||
ReadOnlyAtom as _ReadOnlyAtom,
|
||||
|
||||
Reference in New Issue
Block a user