Skip to content

TypeError: this._fragment is null #917

@bwbroersma

Description

@bwbroersma
<!-- App.html -->
{{#if show}}
  <Nested bind:show/>
{{else}}
  <button on:click="set({show:true})">Show it</button>
{{/if}}
<script>
  import Nested from './Nested.html';
  export default {
    components: {
      Nested
    }
  };
</script>
<!-- Nested.html -->
<p>Nested component with button <button on:click="set({show:false})">Hide it</button></p>

(see REPL)

Now clicking "Hide it" will trigger TypeError: this._fragment is null in function _set(newState), which is called twice and the second time this._fragment is null.

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