Skip to content

no mutation signaled if a scope changes async #164

Closed
@catmando

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

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