Export Flipper state as a part of the universal export

Summary:
Design doc: https://docs.google.com/document/d/1HLCFl46RfqG0o1mSt8SWrwf_HMfOCRg_oENioc1rkvQ/edit#

Create Flipper export as a part on the universal export

Reviewed By: passy

Differential Revision: D40468242

fbshipit-source-id: b1b8e4df3b630c6163bb383482123c12dfc6e118
This commit is contained in:
Andrey Goncharov
2022-10-25 05:31:48 -07:00
committed by Facebook GitHub Bot
parent 0e5af8095f
commit ef0d9fb77e
2 changed files with 32 additions and 4 deletions

View File

@@ -59,6 +59,7 @@ import constants from '../fb-stubs/constants';
import {
canFileExport,
canOpenDialog,
exportEverythingEverywhereAllAtOnce,
showOpenDialog,
startFileExport,
startLinkExport,
@@ -433,10 +434,12 @@ function DebugLogsButton({
}
function ExportEverythingEverywhereAllAtOnceButton() {
const startLogsExportTracked = useTrackedCallback(
const store = useStore();
const exportEverythingEverywhereAllAtOnceTracked = useTrackedCallback(
'Debug data export',
startLogsExport,
[],
() => exportEverythingEverywhereAllAtOnce(store),
[store],
);
return (
@@ -444,7 +447,7 @@ function ExportEverythingEverywhereAllAtOnceButton() {
icon={<BugOutlined />}
title="Export Flipper debug data"
onClick={() => {
startLogsExportTracked();
exportEverythingEverywhereAllAtOnceTracked();
}}
small
/>