Giter Club home page Giter Club logo

Comments (7)

arshaw avatar arshaw commented on July 17, 2024

Would you be able to post a runnable, stripped-down demonstration of the bug? Would really appreciate it because the time saved reproducing will be time spent fixing.

THAT BEING SAID, i think you need to write <FullCalendar :events="getEvents" instead

from fullcalendar-vue.

danipardo avatar danipardo commented on July 17, 2024

Hi Adam, there it goes:

https://codesandbox.io/s/bknid

Note that eventSources() is the method, that, if moved as a computed property, it will be invoked.

PS: kudos for this -> https://fullcalendar.io/reduced-test-cases

from fullcalendar-vue.

arshaw avatar arshaw commented on July 17, 2024

so you're saying that if you move eventSources to be a computed property, and specify the tag like this <FullCalendar :events="getEvents", things work?

from fullcalendar-vue.

danipardo avatar danipardo commented on July 17, 2024

Not exactly. You don't specify a :events property. The sample above just shows that if eventSources is a computed property (where you can also do console.log()), it gets called. But If it is a method, as it is in the sample, you won't see the console.log mesage in the console. Does it makes sense?

from fullcalendar-vue.

arshaw avatar arshaw commented on July 17, 2024

okay makes sense. looks like there's a bug! will get this fixed for the next release

from fullcalendar-vue.

arshaw avatar arshaw commented on July 17, 2024

I took a second look at this. I hope I'm not making us run around in circles here. But I realized your event-sources property is a method. it MUST be an array. OR, if can be a bound statement that generates an array.

I modified your example: https://codesandbox.io/s/fullcalendar-vue-rigwm

It does <FullCalendar :event-sources="getEventSources()"> which calls the getEventSources method which generates the array. The console.log successfully gets called. Does that make sense?

from fullcalendar-vue.

danipardo avatar danipardo commented on July 17, 2024

Yes, it does make sense. I've edited my original codesandbox snippet, and If I add parenthesis, then it works. Parenthesis dont seem to be required when using @click="" and stuff like that, which is weird, but I'll try to figure out the explanation. Thanks a lot, I guess we can close the ticket then.

from fullcalendar-vue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.