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.

recurrence.next(1) hangs

See original GitHub issue

Hi,

var start = moment("01/01/2018", "MM/DD/YYYY");
var end = moment("12/06/2018", "MM/DD/YYYY");

var recurrence = moment().recur( start, end ).every(["Tuesday"]).daysOfWeek().every(3).weeks();

console.log('d');
if (typeof recurrence !== 'undefined' ){
    console.log('defined');
   console.log( recurrence.next(1) );
}else{
    console.log( 'nothing');
}

This script hangs the browser. Is there a bug?

Jake He #

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:2
  • Comments:9

github_iconTop GitHub Comments

2reactions
Hyperblastercommented, Apr 8, 2018

Wouldn’t the expected behaviour be to throw an error? Currently it freezes the entite process or crashes the browser.

In version 1.0.5 it works perfectly.

0reactions
joaom182commented, Jul 21, 2018

@Hyperblaster thanks! I’ve rollback to version 1.0.5 and works perfectly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Recurrence Flow Approval Email - Power Platform Community
Hi, I am trying to create a reminder email for leave request approvals. These work fine with the new or changed item flows....
Read more >
Risk of seizure recurrence from antiepileptic drug withdrawal ...
The relapse rate in our study was similar to commonly reported overall rates for epilepsy. Distinguishing variables, such as withdrawal ...
Read more >
How To Repair Your Outlook Data File To Resolve Recurring ...
If you are having recurring issues with Outlook crashing, hanging or messages not ... 1. Close Outlook and make sure it's fully closed...
Read more >
Performing Recurrent Tasks - Hangfire Documentation
Manipulating recurring jobs¶ · 1. Have the job stored somewhere (i.e. a row in db as {id, state, expiration} · 2. If state...
Read more >
“The danger still hangs over my head” fear of recurrence ...
recurrence among Israeli breast cancer survivors. Inbar Levkovich* ... that I got now, so what [the next one] will be next.
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