edition-php-twig-standard icon indicating copy to clipboard operation
edition-php-twig-standard copied to clipboard

Watcher reloads content in twig file, but not its references.

Open simonerlandsen opened this issue 8 years ago • 2 comments

Info:

  • os: windows 10

To reproduce

  • add reference to a molecule in an organism
  • php core/console --server
  • php core/console --watch
  • add a css class on an html element in the molecules twig file
  • reload page
  • navigate to the molecule under molecules pages
  • navigate to an organism under organism pages where the molecule is referenced

Expected result: Both the molecule and the organism referencing the molecule should now contain the new class.

Result: The new class is included under the molecules pages, but not under the organisms pages where the molecule is referenced.

Temporary workaround: Reload watcher when looking at a referenced atom or molecule.

simonerlandsen avatar Sep 29 '16 11:09 simonerlandsen

I have this issue too, I find it very annoying. I believe that the references to molecules did updated when I began the project, but not right now. I have no idea what could have caused the change. Is there a better fix for this then the workaround suggested?

bagqueen avatar Jan 14 '17 18:01 bagqueen

This is still a problem served by the latest twig integration.

Win 10 + PHP 7.2 + twig demo 3.0.1

Plain demo installation.

Changes in _source/patterns/03-templates/02-blog.twig updating templates-blog, but don't updating pages-blog.

This takes effect upwards in the whole hierarchy. Atoms don't update all above.

This seems twig Pattern Lab specific.

vaxul avatar Jan 12 '18 15:01 vaxul