Skip to content

Commit c9def63

Browse files
committed
챗봇 업데이트 & cleanup 추가
1 parent 3056685 commit c9def63

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"@portone-io/lint-local-links-valid": "workspace:^",
4343
"@portone-io/lint-no-jamo": "workspace:^",
4444
"@portone-io/remark-param-tree": "workspace:^",
45-
"@portone/ai-chatbot-loader": "^0.0.6",
45+
"@portone/ai-chatbot-loader": "^0.0.8",
4646
"@portone/browser-sdk": "^0.1.0",
4747
"@rollup/plugin-yaml": "^4.1.2",
4848
"@sentry/solidstart": "^10.12.0",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Chatbot.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as PortOneAIChatbotLoader from "@portone/ai-chatbot-loader";
2-
import { onMount } from "solid-js";
2+
import { onCleanup, onMount } from "solid-js";
33

44
function Chatbot() {
55
onMount(() => {
@@ -8,6 +8,10 @@ function Chatbot() {
88
});
99
});
1010

11+
onCleanup(() => {
12+
PortOneAIChatbotLoader.unload();
13+
});
14+
1115
return <></>;
1216
}
1317

0 commit comments

Comments
 (0)