Skip to content
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

Fix: SendButton in multimodal-input Sends Only the First Character #641

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ yarn-error.log*
.vercel
.vscode
.env*.local
.history
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,22 @@ pnpm dev
```

Your app template should now be running on [localhost:3000](http://localhost:3000/).

## PSQL Helper queries

- Drop all tables
```
DO $$
BEGIN
EXECUTE (
SELECT string_agg('DROP TABLE IF EXISTS "' || tablename || '" CASCADE;', ' ')
FROM pg_tables
WHERE schemaname = 'public'
);
END $$;
```

- Drop Drizzle schema
```
DROP SCHEMA drizzle CASCADE;
```
7 changes: 1 addition & 6 deletions components/multimodal-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,4 @@ function PureSendButton({
);
}

const SendButton = memo(PureSendButton, (prevProps, nextProps) => {
if (prevProps.uploadQueue.length !== nextProps.uploadQueue.length)
return false;
if (!prevProps.input !== !nextProps.input) return false;
return true;
});
const SendButton = PureSendButton;