From 2c8eef3a230ebd4303583ce2640bcf16abf82ba5 Mon Sep 17 00:00:00 2001 From: Arun Mishra <68141066+arun-mi@users.noreply.github.com> Date: Wed, 29 Nov 2023 15:02:02 +0530 Subject: [PATCH] fix: HS-174: Removed console warning for using link with document and Batcher error for Recoil (#48) Co-authored-by: arun.mishra --- src/App.res | 6 +++++- src/orca-loader/Hyper.res | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/App.res b/src/App.res index 77bf24807..9d486cdf3 100644 --- a/src/App.res +++ b/src/App.res @@ -9,10 +9,14 @@ let make = () => { let logger = React.useMemo0(() => { let log = OrcaLogger.make() - setLoggerState(._ => log) log }) + React.useEffect1(()=>{ + setLoggerState(._=>logger) + None + },[logger]) + let renderFullscreen = { switch fullscreenMode { | "paymentloader" => diff --git a/src/orca-loader/Hyper.res b/src/orca-loader/Hyper.res index ec020c3da..ae9cda946 100644 --- a/src/orca-loader/Hyper.res +++ b/src/orca-loader/Hyper.res @@ -43,7 +43,6 @@ let preloadFile = (~type_, ~href=``, ()) => { } let preloader = () => { - preloadFile(~type_="document", ~href=`${ApiEndpoint.sdkDomainUrl}/`, ()) preloadFile(~type_="script", ~href=`${ApiEndpoint.sdkDomainUrl}/app.js`, ()) preloadFile(~type_="style", ~href=`${ApiEndpoint.sdkDomainUrl}/app.css`, ()) preloadFile(~type_="image", ~href=`${ApiEndpoint.sdkDomainUrl}/icons/orca.svg`, ())