Skip to content

Commit

Permalink
chore: remove use-async-effect dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
vanbasten17 committed Jul 30, 2024
1 parent c9b75e8 commit da440a5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 81 deletions.
78 changes: 0 additions & 78 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/botonic-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"simplebar-react": "^2.4.3",
"styled-components": "^5.3.0",
"ua-parser-js": "^0.8.1",
"use-async-effect": "^2.2.7",
"uuid": "^8.3.2"
},
"devDependencies": {
Expand Down
3 changes: 1 addition & 2 deletions packages/botonic-react/src/webchat/webchat.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import React, {
} from 'react'
import Textarea from 'react-textarea-autosize'
import styled, { StyleSheetManager } from 'styled-components'
import { useAsyncEffect } from 'use-async-effect'
import { v4 as uuidv4 } from 'uuid'

import { Audio, Document, Image, Text, Video } from '../components'
Expand Down Expand Up @@ -333,7 +332,7 @@ export const Webchat = forwardRef((props, ref) => {
webchatState.lastMessageUpdate,
])

useAsyncEffect(async () => {
useEffect(() => {
if (!webchatState.online) {
setError({
message: getServerErrorMessage(props.server),
Expand Down

0 comments on commit da440a5

Please sign in to comment.