Skip to content

Commit

Permalink
fix: HS-174: Removed console warning for using link with document and…
Browse files Browse the repository at this point in the history
… Batcher error for Recoil (#48)

Co-authored-by: arun.mishra <[email protected]>
  • Loading branch information
arun-mi and arun.mishra authored Nov 29, 2023
1 parent ccfb6fb commit 2c8eef3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/App.res
Original file line number Diff line number Diff line change
Expand Up @@ -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" => <PaymentLoader />
Expand Down
1 change: 0 additions & 1 deletion src/orca-loader/Hyper.res
Original file line number Diff line number Diff line change
Expand Up @@ -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`, ())
Expand Down

0 comments on commit 2c8eef3

Please sign in to comment.