replaceState(prop, value)
Replaces the state of a property or page in the Redux Store.
Returns
Not applicable.
Parameters
Name | Type | Description | Required |
prop | string | The name of the property or page whose value needs to be replaced. | ✅ |
value | object | The value that must be assigned to the property or page. | ✅ |
Usage example
In this example, the API replaces the address
page.
getPConnect().replaceState('.address', {
apartment: "Nivee Heights"
streetName: "Park Street",
});
Previous topic registerAdditionalProps(additionalMeta) Next topic reportError(errorMsg, errorObj, context)