Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

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

Open
simonerlandsen opened this issue Sep 29, 2016 · 2 comments
Open

Comments

@simonerlandsen
Copy link

simonerlandsen commented Sep 29, 2016

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.

@bagqueen
Copy link

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?

@vaxul
Copy link

vaxul commented Jan 12, 2018

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.

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

No branches or pull requests

3 participants