Git Product home page Git Product logo

Comments (4)

cwebbdesign avatar cwebbdesign commented on June 1, 2024

I have the same issue but the hack doesn't fix the problem for me. The router waits until the future is resolved to to redirect.
Further, if I do this:

Meteor.call('post', post, function(error, id) {
            if (error) {
                return alert(error.reason);
            }
        });
Meteor.Router.to('postsList');

The page immediate redirects but the post is not added until it is resolved and therefore already has (server) in the title.

Haven't had further time to figure out a fix for the problem.
(v.0.6.3.1)

from microscope.

philcruz avatar philcruz commented on June 1, 2024

I have the same issue. The hack above fixed it for me.

from microscope.

tmeasday avatar tmeasday commented on June 1, 2024

I think you've missed the fact that we move the Meteor.Router.to('postsList') call out of the callback for this example. So it's not a hack at all!

@cwebbdesign if you aren't seeing the (client) version, perhaps the problem is that your method is in a server-only directory?

Here is the way the code should look: sidebar7-5-1

from microscope.

Rebolon avatar Rebolon commented on June 1, 2024

Yes i missed the fact that the router was moved outside the methods call. That's why i had to do this useless patch.

from microscope.

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.