mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-19 21:04:33 +08:00
🚑️ Fix chat remembered state restoration
We need to also persist the new totalChunksDisplayed signal in storage
This commit is contained in:
parent
748252b19e
commit
40aa716d94
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@typebot.io/js",
|
||||
"version": "0.3.54",
|
||||
"version": "0.3.55",
|
||||
"description": "Javascript library to display typebots on your website",
|
||||
"license": "FSL-1.1-ALv2",
|
||||
"type": "module",
|
||||
|
||||
@ -89,7 +89,13 @@ export const ConversationContainer = (props: Props) => {
|
||||
key: `typebot-${props.context.typebot.id}-isEnded`,
|
||||
storage: props.context.storage,
|
||||
});
|
||||
const [totalChunksDisplayed, setTotalChunksDisplayed] = createSignal(0);
|
||||
const [totalChunksDisplayed, setTotalChunksDisplayed] = persist(
|
||||
createSignal(0),
|
||||
{
|
||||
key: `typebot-${props.context.typebot.id}-totalChunksDisplayed`,
|
||||
storage: props.context.storage,
|
||||
},
|
||||
);
|
||||
const [dynamicTheme, setDynamicTheme] = createSignal<
|
||||
ContinueChatResponse["dynamicTheme"]
|
||||
>(props.initialChatReply.dynamicTheme);
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@typebot.io/nextjs",
|
||||
"version": "0.3.54",
|
||||
"version": "0.3.55",
|
||||
"license": "FSL-1.1-ALv2",
|
||||
"description": "Convenient library to display typebots on your Next.js website",
|
||||
"type": "module",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@typebot.io/react",
|
||||
"version": "0.3.54",
|
||||
"version": "0.3.55",
|
||||
"description": "Convenient library to display typebots on your React app",
|
||||
"license": "FSL-1.1-ALv2",
|
||||
"type": "module",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user