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

FormattedRelativeTime with positive value and updateIntervalInSeconds. #1455

Closed
pierreferry opened this issue Aug 27, 2019 · 2 comments
Closed

Comments

@pierreferry
Copy link

Consider this
<FormattedRelativeTime value={3} updateIntervalInSeconds={1} numeric="auto"/>

Expected behavior

It should display :

  • "in 3 seconds"
  • "in 2 seconds"
  • "in 1 second"
  • "now"
  • "1 second ago"

Current behavior

It displays :

  • "in 3 seconds"
  • "in 2 seconds"
  • "in 1 second"
  • "in 3 seconds" // This is the buggy part
  • "1 second ago"

Please check this code sandbox to witness the bug
https://codesandbox.io/s/react-intl-formatrelativedate-broken-1fuhp

@longlho
Copy link
Member

longlho commented Aug 27, 2019

Thanks for reporting! We'll take a look asap.

@longlho
Copy link
Member

longlho commented Aug 27, 2019 via email

longlho pushed a commit that referenced this issue Aug 30, 2019
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

2 participants