Skip to content

Commit

Permalink
fix (ai): fix React useCallback dependencies. (#1534)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrammel authored May 8, 2024
1 parent 20aa9dd commit 4b5dff9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/react/use-chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ export function useChat({
setError,
mutateStreamData,
streamData,
streamMode,
sendExtraMessageFields,
experimental_onFunctionCall,
experimental_onToolCall,
Expand Down
1 change: 1 addition & 0 deletions packages/core/react/use-completion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export function useCompletion({
onError,
setError,
streamData,
streamMode,
mutateStreamData,
],
);
Expand Down
1 change: 1 addition & 0 deletions packages/core/rsc/shared-client/context.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable react-hooks/exhaustive-deps */
'use client';

import * as React from 'react';
Expand Down

0 comments on commit 4b5dff9

Please sign in to comment.