Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9176643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:09:03+00:00 2026-06-17T17:09:03+00:00

I have a list of posts visually displayed. Each post is sorted by its

  • 0

I have a list of posts visually displayed. Each post is sorted by its votes.

Posts.find({}, {sort: {votes: -1, name: 1}})

Now when a user clicks upvote on a post, I do a

Posts.update(id, {$inc: {votes: 1}});

Now since it is sorted by votes, the item moves up/down in the list and the user looses the context. He has to search for the item where it has moved to.

How do I tell meteor to not move the item on update?

I checked the Collections.update function, it doesn’t support reactive: false

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:09:04+00:00Added an answer on June 17, 2026 at 5:09 pm

    You have to use the reactive:false in the find method (it passes on the data to handlebars).

    Posts.find({}, {sort: {votes: -1, name: 1}, reactive: false}});
    

    So that it doesn’t listen for updates (insert/update/move/delete)

    If you need to customize it so that its only for the update operation:

    For starters you would need to remove the autopublish package.

    You also need to then subscribe to your collections manually and publish them from the server. The parties example shows how to do this quite well.

    Then you would need to write a custom publish function and alter the changed: function so that it doesn’t send any data down to the client when votes changes. Note though that the user will not see the updated number of votes until they refresh the page

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My page contains list of posts, each post has its own like button. The
BACKGROUND: I have a list of posts that need to be sorted their 'votes'
i have a list of posts. i want print some words of post content
I have a simple blog page - a list of posts that each consist
I have a database in which there are multiple posts. Each post can be
I have a list of posts and an edit link for each. When clicking
I have queried on user posts (nested resources, obviously) and have a long list
I have User: -ID -Name Badge -ID -Name (E.G User has made 100 posts,
Suppose I have a list of items (e.g., Posts) and I want to find
I have list of posts that any user can edit. When I enter edit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.