UID Refactor 1/n move to utils

Summary: Lets start adding some organisation to the folder structure

Reviewed By: lblasa

Differential Revision: D47547530

fbshipit-source-id: 30d20340ccc4b1c3ab4d4712c807831d74028322
This commit is contained in:
Luke De Feo
2023-07-21 07:17:31 -07:00
committed by Facebook GitHub Bot
parent 4df0ad4d35
commit 2cc0ca0167
8 changed files with 8 additions and 8 deletions

View File

@@ -0,0 +1,25 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import {QueryClient, setLogger} from 'react-query';
export const queryClient = new QueryClient({});
setLogger({
log: (...args) => {
console.log('[ui-debugger] ReactQuery ', ...args);
},
warn: (...args) => {
console.warn('[ui-debugger] ReactQuery ', ...args);
},
error: (...args) => {
//downgrade react query network errors to warning so they dont get sent to scribe
console.warn('[ui-debugger] ReactQuery ', ...args);
},
});