Giter Club home page Giter Club logo

Comments (13)

jankapunkt avatar jankapunkt commented on June 4, 2024 2

There is a PR on this now: Meteor-Community-Packages/meteor-collection-hooks#283

from meteor-autoform.

jankapunkt avatar jankapunkt commented on June 4, 2024 1

hi @timsun28 would you mind proving me a short reproducible example?

from meteor-autoform.

jankapunkt avatar jankapunkt commented on June 4, 2024 1

I am still investigating, since tests on the one hand do not show siginificant issues but there is also some coverage missing so I currently try to go the test-driven way to find out what's actually going on there

from meteor-autoform.

timsun28 avatar timsun28 commented on June 4, 2024

Hi @jankapunkt ,
I have created a quick demo in this empty project that gives me the same issue as in my personal project:
https://github.com/timsun28/autoform-test

You can pull it directly from the repo and run as usual. I have copied my package lists so you can more easily debug what issue could be causing this.

Hope this helps, thank you!

from meteor-autoform.

jankapunkt avatar jankapunkt commented on June 4, 2024

I reproduced it but I can't find why it's like that. I will have to do some research and also see if there are uncovered tests.

from meteor-autoform.

timsun28 avatar timsun28 commented on June 4, 2024

Thank you for letting me know, I will also continue to look into it so will update if I find a solution or more info.

from meteor-autoform.

cheesington avatar cheesington commented on June 4, 2024

I looked at the package list, and noticed matb33:collection-hooks in there. I recently tried to add that package to a project that was using Autoform's hooks, and had the same problem -- the onSuccess hook stopped firing. That might be a place to start looking.

That project is still using Meteor 2.1.1, though.

from meteor-autoform.

timsun28 avatar timsun28 commented on June 4, 2024

@cheesington Thanks for your message. I also tried the hook from that package and it worked properly for inserts. So i'm now using that function to do my processing, but I would prefer to use the autoform functions again. When I get too it I will try and remove that package as I wasn't actively using it for anything else prior to the issues and report back.

from meteor-autoform.

cheesington avatar cheesington commented on June 4, 2024

Yeah, I had to remove the collection-hooks package from the project to get the Autoform onSuccess hook to work again. I was using .after.insert on an unrelated collection, so it took a little while to notice the correlation.

I suspect that Autoform and collection-hooks do some monkey patching of the same code.

Please do report back.

from meteor-autoform.

timsun28 avatar timsun28 commented on June 4, 2024

I can also confirm that by removing the collection-hooks package fixed the issues that I was having. Luckily this wasn't a package that I was actively using for anything, so my issue was quickly resolved.

Hope you can find a fix eventually for this issue or discuss it with the devs from collection-hooks.

from meteor-autoform.

angel-li avatar angel-li commented on June 4, 2024

Have there been any progress on resolving this issue? Unfortunately I can not easily remove collectioon-hooks from my app.

from meteor-autoform.

timsun28 avatar timsun28 commented on June 4, 2024

I haven't had the problem anymore since removing the package, but if this is not possible for you, you can try to create a fix for either autoform or collection-hooks by renaming a certain function that causes the issue.

Just some random idea that could be worth looking into, is the order of your package list. You could try to load one before or after the other so that Autoform has priority over the function name. I believe that collection-hooks was overwritting one of the autoform functions on a collection, because for me the colllection-hooks was still working when the autoform wasn't.

Hope you are able to find a solution to your problem!

from meteor-autoform.

StorytellerCZ avatar StorytellerCZ commented on June 4, 2024

Released in v1.1.3

from meteor-autoform.

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.