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

Order of model relations somehow affects react component rendering (TBD) #18

Open
ikido opened this issue Jun 22, 2016 · 0 comments
Open

Comments

@ikido
Copy link
Collaborator

ikido commented Jun 22, 2016

Description in russian, this needs more research

  1. У нас есть песня про Нюйорк - id 93
  2. У нас есть MR связанный с этой песней - id 1
  3. Если мы заходим в песню, то связанные с ней Directives имеют Writing и Publishing равные null хотя данные для них нормально приходят с бекенда.

4. Но если мы сначала зайдём в MR связанный с этой песней, а потом перейдём на Songs и найдём нашу песню поиском (т.е всячески избежим перезагрузки страницы приложения), то модели Writing и Publishing для этой песни будут уже инициированы.

Стал копаться и обнаружил что в модели MR реляция Directive спущена в самый низ массива реляций. А вот в модели Song. Directive стояла до Writing и Publishing. Перенёс в конец и всё заработало. Но я прибываю в озадаченном состоянии. (edited)

Причём есть такое подозрение, что кто-то с этим багом уже встречался. Потому как очень подозрительно Directive в MR спущен в самый низ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant