Skip to content

[hmr] Add an strict option in ReactiveMappingProxy to always check _data.__getitem__ #431

@CNSeniorious000

Description

@CNSeniorious000

This would fix #408, but may not be ideal.

  1. Methods __delitem__, __setitem__ (with check_equality=True), and __getitem__ need be updated
  2. Even __iter__ might need to call __getitem__ to ensure consistency, or we still can't promise they are in sync
  3. Users can manually sync via simply self.update(self._data) if needed

However, without this, direct modifications to __dict__ or globals() still won't be accessible through __getattr__, as noted in #211—this should be considered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions