Skip to content

RangeError: Maximum call stack size exceeded #354

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

Closed
SAnDAnGE opened this issue Aug 5, 2019 · 2 comments
Closed

RangeError: Maximum call stack size exceeded #354

SAnDAnGE opened this issue Aug 5, 2019 · 2 comments
Assignees
Labels

Comments

@SAnDAnGE
Copy link

SAnDAnGE commented Aug 5, 2019

🐛 Bug report

Current Behavior

RangeError: Maximum call stack size exceeded

Expected behavior

No error

Reproducible example

https://stackblitz.com/edit/typescript-3kmxjd

Suggested solution(s)

Memoisation, Tail Call Optimisation, Trampolining
https://blog.logrocket.com/using-trampolines-to-manage-large-recursive-loops-in-javascript-d8c9db095ae3/

Additional context

The code in this example is generated using io-ts-codegen.
This code is used to decode forms that are shown to the user to be filled using angular components.

Your environment

Which versions of io-ts are affected by this issue?

[email protected]

Did this work in previous versions of io-ts?

Not as far as I know.

Software Version(s)
io-ts 2.0.0
fp-ts 2.0.3
TypeScript 3.4.5+
@gcanti gcanti added the bug label Aug 6, 2019
@gcanti gcanti self-assigned this Aug 6, 2019
@gcanti gcanti closed this as completed in 647e530 Aug 6, 2019
@gcanti
Copy link
Owner

gcanti commented Aug 6, 2019

@SAnDAnGE thanks for the bug report

@SAnDAnGE
Copy link
Author

@gcanti Thank you for the quick fix ! Keep up the great work ! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants