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

fix: avoid setting dateInView when value stays the same #103

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

fer0n
Copy link
Contributor

@fer0n fer0n commented Nov 28, 2023

No description provided.

Copy link

netlify bot commented Nov 28, 2023

Deploy Preview for schummar-table ready!

Name Link
🔨 Latest commit ab4ed05
🔍 Latest deploy log https://app.netlify.com/sites/schummar-table/deploys/6565f12bc93132000832de62
😎 Deploy Preview https://deploy-preview-103--schummar-table.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

useEffect(
() =>
setDateInView(
value === null ? defaultDateInView ?? mountTime : value instanceof Date ? value : value.max,
),
[value, defaultDateInView, mountTime],
[comparisonValue, comparisonDefaultDateInView, mountTime],
Copy link
Owner

Choose a reason for hiding this comment

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

Statt dafür Variable zu definieren, die den ganzen restlichen Scope "verschmutzen", finde ich es besser, das entweder inline zu machen.

@schummar schummar merged commit d070acf into schummar:master Nov 28, 2023
4 checks passed
Copy link
Contributor

🎉 This PR is included in version 0.37.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants