Skip to content

Commit

Permalink
retry initial message in release notes (webkit) (#999)
Browse files Browse the repository at this point in the history
Co-authored-by: Shane Osbourne <[email protected]>
  • Loading branch information
shakyShane and Shane Osbourne authored Jul 24, 2024
1 parent 115d308 commit 8b48414
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/special-pages/pages/release-notes/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { App } from './components/App'
import { Components } from './Components'
import { EnvironmentProvider } from '../../../shared/components/EnvironmentProvider'
import { TranslationProvider } from '../../../shared/components/TranslationsProvider'
import { callWithRetry } from '../../../shared/call-with-retry.js'
import enStrings from '../src/locales/en/release-notes.json'

import '../../../shared/styles/global.css' // global styles
Expand All @@ -15,7 +16,13 @@ export const MessagingContext = createContext({
export const useMessaging = () => useContext(MessagingContext)

export async function init (messages, baseEnvironment) {
const init = await messages.initialSetup()
const result = await callWithRetry(() => messages.initialSetup())

if ('error' in result) {
throw new Error(result.error)
}

const init = result.value

const environment = baseEnvironment
.withEnv(init.env)
Expand Down

0 comments on commit 8b48414

Please sign in to comment.