Giter Site home page Giter Site logo

Comments (6)

pgrm avatar pgrm commented on May 18, 2024

Ok, I've found the problem for the 2. problem - queries on the server aren't reactive, but the first problem still is bugging me a bit, any ideas?

from angular2-meteor.

barbatus avatar barbatus commented on May 18, 2024

I can only guess that some property is still undefined when being rendered. Otherwise, a repo with the issue needed.

from angular2-meteor.

barbatus avatar barbatus commented on May 18, 2024

@pgrm can you pls check with the latest version?

from angular2-meteor.

juanpujol avatar juanpujol commented on May 18, 2024

I have a similar problem. Tested with v0.3.4

This always works locally in Chrome and Safari, in Firefox sometimes. It rarely works on the server.

export class RoomComponent {
    room: Room;

    constructor(public params: RouteParams) {
        let roomId = this.params.get('id');
        this.room = Rooms.findOne(roomId);
    }
}

This doesn't work neither locally or the server (won't update this.room):

export class RoomComponent extends MeteorComponent {
    room: Room;

    constructor(public params: RouteParams) {
        super();
        let roomId = this.params.get('id');
        this.subscribe('room', roomId, () => {
            this.room = Rooms.findOne(roomId);
        }, true);
    }
}

Could it be the reactive problem with queries on the server?

Thank you.

from angular2-meteor.

juanpujol avatar juanpujol commented on May 18, 2024

I fixed my issue. I had someting worng on my pub files inside the server directory.

Now this.subscribe works fine.

from angular2-meteor.

pgrm avatar pgrm commented on May 18, 2024

@barbatus sry it took so long. The new version seems to work, I can't reproduce the issue anymore. Closing it for now.

from angular2-meteor.

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.