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

Extract Checkout components #4862

Merged
merged 19 commits into from
Jan 27, 2025
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
ea4eb0b
server/checkout: output Stripe publishable key in payment processor m…
frankie567 Jan 16, 2025
7c4e587
clients: move checkout components to a dedicated package
frankie567 Jan 21, 2025
da5196b
clients/apps/web: implement a context provider to ease mocking
frankie567 Jan 21, 2025
19a6916
clients/web: re-enable Checkout preview in Storefront
frankie567 Jan 22, 2025
0362b28
clients/packages/checkout: fix @polar-sh/ui imports and tweak build
frankie567 Jan 23, 2025
ef306da
clients/examples: add a Next.js example for checkout components
frankie567 Jan 23, 2025
2722c27
clients/packages/checkout: add SSE hooks
frankie567 Jan 24, 2025
047067b
clients/web: simplify and fix checkout pages using Checkout SDK
frankie567 Jan 24, 2025
26ff4a8
clients/packages/checkout: remove onCheckoutConfirmed prop
frankie567 Jan 24, 2025
4330657
clients/web: tweak loading status of checkout submit button
frankie567 Jan 24, 2025
122b768
clients/packages/checkout: fix import casing
frankie567 Jan 24, 2025
1414cad
clients/web: fix import casing
frankie567 Jan 24, 2025
cb62096
clients/web: fix component usage
frankie567 Jan 24, 2025
55c8a00
clients/web: re-add embed confirmed event on checkout
frankie567 Jan 24, 2025
8aaea92
clients/packages/checkout: fix typing in debounce hook
frankie567 Jan 24, 2025
84b73e8
clients/packages/checkout: tweak imports
frankie567 Jan 24, 2025
4d2421b
clients: upgrade @polar-sh/sdk
frankie567 Jan 24, 2025
8d497fb
clients/web: remove Product media slideshow on Checkout info to reduc…
frankie567 Jan 27, 2025
0083cd8
clients/web: chase some Material UI icons to reduce bundle size
frankie567 Jan 27, 2025
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
Prev Previous commit
Next Next commit
clients/packages/checkout: fix typing in debounce hook
frankie567 committed Jan 27, 2025
commit 8aaea92968af229dc751c7335d0a9785479a3498
2 changes: 1 addition & 1 deletion clients/packages/checkout/src/hooks/debounce.ts
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ export const useDebouncedCallback = <T extends (...args: any[]) => any>(
delay: number,
dependencies?: any[],
) => {
const timeout = useRef<NodeJS.Timeout>()
const timeout = useRef<ReturnType<typeof setTimeout>>()

return useCallback(
(...args: Parameters<T>): ReturnType<T> | void => {