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

setColumns() not updating the table columns in production

オープン
#541 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
311
フォーク
130
PR マージ指標
30日以内にマージされた PR はありません

説明

I've built a column selector where users can choose which columns to see and the config is persisted to the DB, which works perfectly in development, however when deployed to production the columns in the table are not updated.

Events are being handled correctly and the config (list of columns) is persisted to the DB as it should be, however the table is not updating with the correct columns. Calling `this.get("table").setColumns(columns)`, where `columns` is the array of selected columns doesn't actually update the table. Performing a page refresh causes the correct columns to be shown (because the column list is persisted), but they don't update dynamically as the user is selecting/deselecting them in production...it does work in development

I noticed on #540 @buschtoens mentioned setting the `hidden` attribute on the columns...would that be the desired approach rather then calling `setColumns` with the new column array? I'm just not sure why this is only broken in production.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。