Skip to content

Conversation

BrunoQuaresma
Copy link
Collaborator

Since it is a minor thing and does not block the user at all I didn't add more tests.

@BrunoQuaresma BrunoQuaresma requested a review from a team as a code owner November 16, 2022 14:39
@BrunoQuaresma BrunoQuaresma self-assigned this Nov 16, 2022
@BrunoQuaresma BrunoQuaresma requested review from Kira-Pilot and removed request for a team November 16, 2022 14:39
@BrunoQuaresma BrunoQuaresma enabled auto-merge (squash) November 16, 2022 14:39
set: (value: string) => void
}

export const useTab = (tabKey: string): UseTabResult => {
export const useTab = (tabKey: string, defaultValue: string): UseTabResult => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we assign a default value here in case the consumer doesn't pass one in?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't know what value it can be so I think we can left it required for now.

@BrunoQuaresma BrunoQuaresma merged commit 1fcc7ca into main Nov 16, 2022
@BrunoQuaresma BrunoQuaresma deleted the bq/fix-tab-hook branch November 16, 2022 16:43
@github-actions github-actions bot locked and limited conversation to collaborators Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants