RangeError: Maximum call stack size exceeded
Unanswered
astro posted this in #help-forum
astroOP
im getting range error when i click submit button
https://pastebin.com/vz0wHe2h (pastebin cuz code too long)
also suggest if this is the right way to fetch data in client component
https://pastebin.com/vz0wHe2h (pastebin cuz code too long)
also suggest if this is the right way to fetch data in client component
2 Replies
Sun bear
I would first change this part:
Not 100% sure if it is because of this part but would test it like this:
{form.formState.isSubmitting ? (
<ButtonLoading text="Sending..." />
) : (
<Button type="submit">Send</Button>
)}Not 100% sure if it is because of this part but would test it like this:
<Button
disabled={form.formState.isSubmitting}
type="submit">
{form.formState.isSubmitting ? "Sending..." : "Send"}
</Button>And regarding datafetching. You could fetch in a servercomponent an pass it to the client