Git Product home page Git Product logo

Comments (3)

notwaldorf avatar notwaldorf commented on August 30, 2024

Hmm, I can't repro this. Here's a glitch (code, demo) where I'm just rendering the following element, and it shows up fine:

class AThing extends LitElement {
  static get is() {
    return 'a-thing';
  }
  render() {
    return html`
      hi! this is a thing.
    `;
  }
}
window.customElements.define(AThing.is, AThing);

Based your initial issue title, I also included in the demo rendering two nested, no-properties elements, and that works fine too.

from lit-element.

ernsheong avatar ernsheong commented on August 30, 2024

Thanks for the response and time taken to triage, @notwaldorf. I will reopen this if I can reproduce this in a glitch.

In my project, I had an empty properties object returned like this:

static get properties() {
  return {};
}

which caused a no render. Filling it with at least a property helped. Couldn't immediately reproduce this in a Glitch, I will play with it again and see.

from lit-element.

notwaldorf avatar notwaldorf commented on August 30, 2024

I think that if you just return {}, you don't really need to add that properties block :)

from lit-element.

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.