-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
feat(widget-builder): Add limit field to widget builder hook #81944
Conversation
❌ 1 Tests Failed:
View the top 1 failed tests by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a comment on fixing the test failure but lgtm. Ideally we'd pass along the decodeInteger
to the decoder, but it seems like it wouldn't handle the default properly so this is okay for now.
}) | ||
); | ||
|
||
const {result} = renderHook(() => useWidgetBuilderState()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is failing because you need to add a second argument to render hook since now I'm tying it to the URL batch thing.
const {result} = renderHook(() => useWidgetBuilderState()); | |
const {result} = renderHook(() => useWidgetBuilderState(), {wrapper: <whatever I called the provider>}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup yup just added that in
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
Added the limit field to widget builder hook and made test. I put it as a number and use a deserializer to go from query param string to number. Let me know if there was a different way you were thinking of doing it.
Added the limit field to widget builder hook and made test. I put it as a number and use a deserializer to go from query param string to number. Let me know if there was a different way you were thinking of doing it.