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

Update React hooks to pass custom tx instance #205

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

n1k0sv
Copy link

@n1k0sv n1k0sv commented Jan 4, 2024

Addresses issue: #182

}

function translateWithElements(_str, props, tx) {
const _t = tx.t || t;

Choose a reason for hiding this comment

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

Is tx always defined here? Might want to null check it to be safe

@n1k0sv n1k0sv merged commit 79fa4d2 into master Jan 9, 2024
5 checks passed
@n1k0sv n1k0sv deleted the react-hooks-tx-instance branch January 9, 2024 10:22
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

Successfully merging this pull request may close these issues.

3 participants