Closed
Description
try the todo example, with prerendering off and then in Todo model:
class Todo < ApplicationRecord
scope :completed, -> () { where(completed: true) }, client: -> { completed }
scope :active, -> () { where(completed: false) }, client: -> { !completed }
end
Load the all scope, notice that the active todo count sticks at one,
then when we look at the active scope, it only contains one (wrong usually) item.
Problem is occuring because on the footer we do a count of the active scope. Presumably this causes the completed client side scoping rule to be run, but on the dummy 'all' scope.
If you remove the footer the problem goes away.