question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Long Delay and Duplicate Events After Updating Existing Event

See original GitHub issue

When using saveEvent to update a single existing event on Android Tablets, the updated event is duplicated for a while: it’s visible on its new date and time, and also still shows up under the old date and time for approximately 2 minutes or longer.

Also, slightly different but may be related, on the Android Pixel 2, the updated event is not showing twice, but is taking up to 2 minutes to reflect in the calendar.

Environment

Tablets: Android Samsung Galaxy Tab A (Android 10), and Nexus 9 (Android 7.1.1) Phone: Pixel 2 (Android 11)

System: OS: macOS 10.15.7 CPU: (16) x64 Intel® Core™ i9-9880H CPU @ 2.30GHz Memory: 27.94 MB / 16.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 14.15.0 - ~/.nvm/versions/node/v14.15.0/bin/node npm: 6.14.8 - ~/.nvm/versions/node/v14.15.0/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2 Android SDK: API Levels: 28, 29, 30 Build Tools: 28.0.3, 29.0.2, 30.0.2 System Images: android-30 | Google APIs Intel x86 Atom IDEs: Android Studio: 4.1 AI-201.8743.12.41.6953283 Xcode: 12.4/12D4e - /usr/bin/xcodebuild npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.5 => 0.61.5 npmGlobalPackages: react-native-cli: 2.0.1

Steps to Reproduce

await RNCalendarEvents.saveEvent( eventName, // "Module 1 Flashcards" (assignment due) { id: existingEventId, // "924" startDate: eventDate.toISOString(), // Fri May 07 2021 15:10:00 GMT-0400 (Eastern Daylight Time) endDate: eventDate.toISOString(), // Note: we use this as a due date/time, so start and end times are equal calendarId: primaryCalendarId, // "1" notes: eventNote, // "some text" description: eventDetails // "some text" } );

Expected Behavior

Expected the event datetime to reflect in the calendar immediately, and for the updated event to no longer appear on its previous datetime.

Actual Behavior

On Tablets, the event is showing twice for 2 minutes or longer, one on the updated datetime, another on the previous datetime. (New circled in blue, old circled in red)

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
MoOxcommented, Apr 20, 2021

This was undocumented. I added more info in the readme about this in 69ec2a5c055244f16ceb467edb0a76471face239

0reactions
PAronofskycommented, Apr 20, 2021

Yeah, I meant in typescript, I put in a small PR above

Read more comments on GitHub >

github_iconTop Results From Across the Web

How long to wait for duplicate webhook events - API Support
Run the event processing job after a short delay of maybe 5 minutes to allow similar events on the same resource to come...
Read more >
Idempotency and Ordering in Event-Driven Systems
How to handle duplicate events ... Events are usually sent with an at-least-once delivery guarantee. This means that each event is guaranteed to ......
Read more >
Why Duplicate Events are adding While updating the Event in ...
I have an event from 16 Feb, 2015 to 20 Feb, 2015 at 10AM with an alarm set to it. It is saved...
Read more >
Multiple duplicate events created by Event Aggregator from ...
Hello TEC,. We have a recurring issue with our events being imported from Google Calendar via the Event Aggregator add-on.
Read more >
Best practices for using webhooks | Stripe Documentation
This means that subsequent updates to your account's API version do not retroactively alter existing Event objects. Fetching older events by calling ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found