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

An argument for 'initialValue' was not provided in src/v1/Hooks #490

Open
tvisnia opened this issue May 24, 2022 · 0 comments
Open

An argument for 'initialValue' was not provided in src/v1/Hooks #490

tvisnia opened this issue May 24, 2022 · 0 comments

Comments

@tvisnia
Copy link

tvisnia commented May 24, 2022

Hello all,

Implementation of useConst in newest version (16.2.4) has no inivialValue passed to useRef. As a result, I'm unable to run tsc in my project with some v1 code without "Expected 1 arguments, but got 0. An argument for 'initialValue' was not provided" error.

obraz

May I ask to add undefined as an initial value for useRef inside src/v1/Hooks/useConst function ?

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

No branches or pull requests

1 participant