fiberplane / fpx

Supercharge your local development
https://fiberplane.dev
MIT License
131 stars 3 forks source link

Add copy as cURL button to Requestor #153

Closed oscarvz closed 2 months ago

oscarvz commented 2 months ago

Adds a 'copy as cURL' button to the bottom bar in Requestor. It's currently behind a feature flag still.

[!note] I didn't bother with memoizing any of the logic implemented in CopyAsCurl, as every single interaction will result in a rerender - unless we memoize each prop individually, which introduces quite some overhead with negligible performance gains.


Can do: https://github.com/user-attachments/assets/c2fe3a08-b39e-4b02-9ee6-b1bb9d9fe4f0

No can do: https://github.com/user-attachments/assets/a19a7b31-7c59-414d-9a8c-02ceade66429

pkg-pr-new[bot] commented 2 months ago

commit: 1be4f79

pnpm add https://pkg.pr.new/fiberplane/fpx/@fiberplane/studio@153
pnpm add https://pkg.pr.new/fiberplane/fpx/@fiberplane/hono-otel@153

Open in Stackblitz