CondoWebAppReplaceHistoryState

This method replaces the current entry in the mini-app navigation stack — the equivalent of window.history.replaceState. Unlike PushHistoryState, no new entry is added: only the top entry of the stack is modified. After successful processing, Condo will send the mini-app a CondoWebAppHistoryPopState event with the updated state.

Platforms

B2B WebB2C WebB2C Cordova

Method params

Parameter nameParameter typeRequiredParameter description
titlestring | nullnoNew title for the current navigation state
stateunknownnoArbitrary state to replace the current one with

Return value

If successful, the method will return a JSON object containing a single success field:
json
{ "success": true }

Usage example

typescript
import bridge from '@open-condo/bridge' await bridge.send('CondoWebAppReplaceHistoryState', { title: 'Step 1 (updated)', state: { step: 1, formData: { name: 'Jane' } }, })