adopted-ember-addons / adopted-ember-addons/ember-light-table

docs(cookbook): update samples to not pass null model to Table constructor rows

Offen
#532 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
cookbook
Vorherrschende Sprache
JavaScript
Sterne
311
Forks
130
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

In nearly all the cookbook examples, the table-common mixin is used which calls the table constructor the init hook as follows:

`let table = new Table(this.get('columns'), this.get('model'), { enableSync: this.get('enableSync') });`

But model is null during init, which previously resulted in an error (#340) and as of #522 will trigger an assertion.

Please update the cookbook so the examples are usable and reflect the recommended pattern.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.