Skip to content

Component template changes not reflected in app  #1426

Closed
@allmarkedup

Description

@allmarkedup

Hey all. I'm running into an issue after upgrading ViewComponent to >= v2.58.0 whereby any changes I make to component view templates are not showing up when the component is rendered in our app views.

Changes to the component class file are picked up correctly - and If I make a change to a template and then make a change to the component class file, the template change will then show up in the app correctly.

Otherwise, the only way to see the changes to the component view template is to restart the server.

I'm pretty sure this is somehow related to our specific app setup, as a fresh install of the latest ViewComponent version in a new project works as expected. But I'm tearing my hair out a little bit here so I was wondering if anyone had any ideas as to what might be going on and help guide my debugging efforts!

Any help on this would be very much appreciated :-)

Steps to reproduce

  • Start app.
  • Make change to a component view template file
  • View an instance of the component rendered in the app

Expected behavior

I should see the change to the component template reflected in the app.

Actual behavior

The component output is unchanged from how it was before the template was edited.

System configuration

Rails version:
6.1.6.1

Ruby version:
2.7.1

Gem version:
>= v2.58.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions