Giter VIP home page Giter VIP logo

Comments (3)

zouhir avatar zouhir commented on May 19, 2024

I never had use case where this is useful, but, when a developer explicitly calls render() I think we should do it. I will have this in mind, thanks.

from preact-habitat.

zouhir avatar zouhir commented on May 19, 2024

I will add force option.

from preact-habitat.

remorses avatar remorses commented on May 19, 2024

This bug means that you cannot use preact-habitat on the same selector more than once

for example if someone is using this library for 2 widgets on their site (usually widgets will use the body selector), only the first one will work

Edit: turns out it doesn't matter anyway because preact renders a tree only once for each root container, i needed to do this:

// preact will render only once for each container
const container = document.createElement('div')
document.body.appendChild(container)
render(<App />, container)

from preact-habitat.

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.