Skip to content

Conversation

@Iru89
Copy link
Contributor

@Iru89 Iru89 commented May 12, 2025

Description

Load the initialState in the context using the localStorage data.
Do not condition the call to the hook useWebchat inside the Webchat component. Always use the prop.webchatHooks. To achieve this I have added a component between the WebchatApp and the Webchat called WebchatHooks that uses the hook useWebchat and passes the webchatHooks as props.

Context

Approach taken / Explain the design

To document / Usage example

Testing

The pull request...

  • has unit tests
  • has integration tests
  • doesn't need tests because... [provide a description]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants