Skip to content

Belongs to relationships on new records don't react to updates to the relationship. #125

Closed
@catmando

Description

@catmando
before_mount { foo = Model.new(attr1: 'hello')  
...
DIV { foo.belongs_to_some_bar&.bar_attribute }
...
on(:click) { foo.belongs_to_some_bar = a_bar }  # should rerender the div but does not

if we change the new to Model.new(attr1: 'hello', belongs_to_some_bar: nil) it works

This was found on hyperloop legacy so perhaps its fixed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions