I hereby claim:
- I am jeanbauer on github.
- I am jeanbauer (https://keybase.io/jeanbauer) on keybase.
- I have a public key ASDC4KuyhEyvQCn_yguIMXgHN7XotjmC8_slacrZ22sHWgo
To claim this, I am signing this object:
| { | |
| "tools": [ | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "codebase_search", | |
| "description": "Find snippets of code from the codebase most relevant to the search query.\nThis is a semantic search tool, so the query should ask for something semantically matching what is needed.\nIf it makes sense to only search in particular directories, please specify them in the target_directories field.\nUnless there is a clear reason to use your own search query, please just reuse the user's exact query with their wording.\nTheir exact wording/phrasing can often be helpful for the semantic search query. Keeping the same exact question format can also be helpful.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { |
| Invariant Violation: Hooks can only be called inside the body of a function component. | |
| 2 | | |
| 3 | export function useFormField(initialValue) { | |
| > 4 | const [value, setValue] = useState(initialValue) | |
| | ^ | |
| 5 | | |
| 6 | function onChange(e) { | |
| 7 | setValue(e.target.value) |
| // Usage - client: | |
| useEffect(() => { | |
| subscribe('users', setUsers) | |
| subscribe('messages', setMessages) | |
| } | |
| // Subscribe implementation | |
| export function subscribe(collection, onDataReceive) { | |
| db.collection(collection) |
| import { useState } from 'react' | |
| const Form = () => { | |
| const name = useFormInput('Name') | |
| return ( | |
| <> | |
| <input {...name} /> | |
| </> | |
| ) |
I hereby claim:
To claim this, I am signing this object:
| ### Keybase proof | |
| I hereby claim: | |
| * I am jeanbauer on github. | |
| * I am jeanbauer (https://keybase.io/jeanbauer) on keybase. | |
| * I have a public key ASDC4KuyhEyvQCn_yguIMXgHN7XotjmC8_slacrZ22sHWgo | |
| To claim this, I am signing this object: |