Skip to content

no mutation signaled if a scope changes async #164

Closed

Description

@catmando

if a remote delete is received everything works except observers of the scope are not notified.

This because collections never notify while data is loading (not sure why)

It seems though that the only broken case is when a nested scope is updated by an async notification. So a workaround is to add this code

          Hyperstack::Internal::State::Mapper.bulk_update do
            Hyperstack::Internal::State::Variable.set(target, :collection, target.collection)
          end

immediately after

          target.replace loaded_collection

in server_data_cache.rb

Activity

  1. added this to the alpha1.4 milestone on Apr 14, 2019
  2. added a commit that references this issue on Apr 15, 2019
  3. added
    ready-to-releaseInternal Use Only: Has been fixed, specs passing and pushed to edge branch
    on Apr 15, 2019
  4. modified the milestones: alpha1.4, alpha1.5 on Apr 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingready-to-releaseInternal Use Only: Has been fixed, specs passing and pushed to edge branch

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions