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 Web | B2C Web | B2C Cordova |
|---|---|---|
Method params
| Parameter name | Parameter type | Required | Parameter description |
|---|---|---|---|
| title | string | null | no | New title for the current navigation state |
| state | unknown | no | Arbitrary 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
typescriptimport bridge from '@open-condo/bridge' await bridge.send('CondoWebAppReplaceHistoryState', { title: 'Step 1 (updated)', state: { step: 1, formData: { name: 'Jane' } }, })