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

calling refetchResources from viewRender freezes browser #255

Closed
arshaw opened this issue Jan 5, 2017 · 2 comments
Closed

calling refetchResources from viewRender freezes browser #255

arshaw opened this issue Jan 5, 2017 · 2 comments
Milestone

Comments

@arshaw
Copy link
Member

arshaw commented Jan 5, 2017

In http://jsbin.com/gixetohunu/1/edit?js,output ...

    viewRender: function( view, element ) {
      //
      // uncomment this line to demo the freezing...
      //
      //$('#calendar').fullCalendar( 'refetchResources' );
    },

reported by Jurgen

@arshaw arshaw added this to the 1.5.1 milestone Feb 12, 2017
@arshaw
Copy link
Member Author

arshaw commented Feb 12, 2017

probably the same root-cause as this: fullcalendar/fullcalendar#3519

@arshaw
Copy link
Member Author

arshaw commented Feb 12, 2017

I've just made a comment: fullcalendar/fullcalendar#3519 (comment)

and it applies this ticket as well. TL;DR: I want to give people the ability to initiate rerenders from the viewRender hook. It should be up to them to prevent infinite recursion.

Though I feel this is a moot point because, looking at what you're trying to do, there is already a built-in setting for that:

refetchResourcesOnNavigate

@arshaw arshaw closed this as completed Feb 12, 2017
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

1 participant