Skip to content

Commit

Permalink
fix(hv-screen): include onUpdateCallbacks in the render options (#958)
Browse files Browse the repository at this point in the history
Resolving an issue where `onUpdateCallbacks` were not passed to the
rendered screen elements.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Enhanced the `HvScreen` component with new callback functionalities
for improved state management and navigation during updates.

- **Bug Fixes**
- Improved handling of element errors and state updates within the
`HvScreen` class.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
hgray-instawork authored Oct 14, 2024
1 parent c65aac8 commit 574ff4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/components/hv-screen/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ export default class HvScreen extends React.Component {
this.onUpdate,
{
componentRegistry: this.componentRegistry,
onUpdateCallbacks: this.updateCallbacks,
screenUrl: this.state.url,
staleHeaderType: this.state.staleHeaderType,
},
Expand Down

0 comments on commit 574ff4b

Please sign in to comment.