Fetch logs to create paste and autofill them

Summary:
Added fetching logs for flipper and autofilling them too with the create paste link in the description of the support form.

Changed the on click load form function to async to handle this as createPaste returns a promise and not the URL directly.

Reviewed By: mweststrate

Differential Revision: D31268006

fbshipit-source-id: 2a9ee08948198781adadd2b3b9c447f179db7d5c
This commit is contained in:
Ananya Arun
2021-09-30 04:14:27 -07:00
committed by Facebook GitHub Bot
parent b8236f1b3a
commit ed80dcf26c

View File

@@ -22,7 +22,7 @@ import {DeleteOutlined} from '@ant-design/icons';
const MAX_LOG_ITEMS = 1000; const MAX_LOG_ITEMS = 1000;
const logsAtom = createState<any[]>([]); export const logsAtom = createState<any[]>([]);
export const errorCounterAtom = createState(0); export const errorCounterAtom = createState(0);
export function enableConsoleHook() { export function enableConsoleHook() {