Giter Club home page Giter Club logo

Comments (4)

defunctzombie avatar defunctzombie commented on August 12, 2024

This needs much more information and example code that can actually be run.

from hbs.

davidkaneda avatar davidkaneda commented on August 12, 2024

Again, appreciate that it's not a great ticket, just trying to get some insight into what could cause it. Is there a timeout after which the IDs don't get replaced if the promises don't return?

I can create a sample, just worried it won't show the problem since the only current thing that triggers it is Heroku's env vs mine.

from hbs.

davidkaneda avatar davidkaneda commented on August 12, 2024

Got it, sorry again for being vague. Just in case anyone runs across this with a similar answer, the issue is Express has view caching enabled by default (just in production env). Rough they don't work together, I'll probably investigate more at some point, but if you need to fix, just use:

app.set('view cache', false);

from hbs.

vkareh avatar vkareh commented on August 12, 2024

This is still an issue. When NODE_ENV is set to production, express automatically sets view cache to true. Async helpers set an ID that gets replaced by the resolved value, however this only happens on the non-cached version of the template. As soon as the template gets cached, the IDs no longer get replaced. See my pull request #124 for a fix that replaces the async IDs for both cached and non-cached templates.

from hbs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.