Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
catmando opened this issue Feb 13, 2019 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@catmando
Copy link
Contributor

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?

@catmando catmando added the bug Something isn't working label Feb 13, 2019
@catmando catmando added this to the alpha1.5 milestone Jun 14, 2019
@catmando
Copy link
Contributor Author

not sure if this got fixed... working on a spec

@catmando catmando changed the title new records created on clients do not initialize belongs_to relations correctly Belongs to relationships on new records will react to updates to the relationship. Jun 19, 2019
@catmando catmando changed the title Belongs to relationships on new records will react to updates to the relationship. Belongs to relationships on new records don't react to updates to the relationship. Jun 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant