Brian Hung

Results 91 comments of Brian Hung

One use case of this is as a source of entropy unique per mutation that, along with a hashing function, could create deterministic / pseudorandom ids. For example, ```ts import...

Workaround would be isolating your useChat hook into a component like `ChatMessages`, and then having the key be used on that component. For example, ```tsx ```

This is probably a bug. What happens when the text cell is readonly and you try clicking on it, because the textarea is disabled, focus is transferred from canvas to...

https://github.com/glideapps/glide-data-grid/blob/e79e8983cc2e297206ee5185441ca4edd1dcba47/packages/core/src/docs/examples/server-side-data.stories.tsx#L160-L163 is a good example. I've used it myself to load data asynchronously from a web-worker.

You will probably have to patch this line https://github.com/glideapps/glide-data-grid/blob/2ad08c86f43e78de6512ed4e1378494a2c5b97d3/packages/core/src/data-grid-overlay-editor/data-grid-overlay-editor.tsx#L177 to pass `onFinishEditing` directly instead of `onEditorFinished`. And then use the movement as accordingly. Maybe submit a PR if implement something...

You should be able to use `onFinishEditing` to close the editor and move the cell selection. How are you using it right now?

Yeah, if you're modifying the package in node_modules, make sure to clear your vite cache.

The data editor has a `onKeyDown` prop; did you try using `onFinishedEditing` within that? Or is this internal `onKeyDown` closer to the event so it intercepts events first?

Yep that sounds right; patching onFinishedEditing={onEditorFinished} Should also work as long as you’re handling it in your onKeyDownHandler then.

Would add a language prop there to the syntax highlighter would know how to parse it. I'm biased towards recommending CodeMirror, since if you use the same syntax highlighter and...