Skip to content

WIP: load initialState from localStorage #3019

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master-lts
Choose a base branch
from

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.

1 participant