tui.grid
tui.grid copied to clipboard
Tui Grid pollute original data while presenting data in table
When using tui-grid, it seems to work by adding properties such as rowKey and sortKey to the passed data.
This method seems to have the following problems. First, it pollutes the original data in the Presentation Layer. I don't think most people would expect the original data to be transformed in the process of presenting it in a table. Second, immutable objects cannot be used. In particular, since many state management libraries such as Redux manage objects immuatably, usability is limited in many case.
Even if it consumes a little more memory, it is suggested to manage it separately through depensive copy inside the tui grid.
== tui-grid ์ฌ์ฉ ์, ๋๊ฒจ์ค ๋ฐ์ดํฐ์ rowKey, sortKey ๋ฑ์ ์์ฑ์ ์ถ๊ฐํ๋ ๋ฐฉ๋ฒ์ผ๋ก ๋์ํ๋ ๊ฒ ๊ฐ์ต๋๋ค.
ํด๋น ๋ฐฉ์์ ๋ค์๊ณผ ๊ฐ์ ๋ฌธ์ ์ ์ ๊ฐ์ง๊ณ ์์ ๊ฒ์ผ๋ก ๋ณด์ฌ์ง๋๋ค. ์ฒซ๋ฒ์งธ, ์๋ณธ ๋ฐ์ดํฐ๋ฅผ Presentation Layer์์ ์ค์ผ์ํต๋๋ค. ๋๋ถ๋ถ์ ์ฌ๋๋ค์ ํ ์ด๋ธ์ ๋ฐ์ดํฐ๋ฅผ ๋ณด์ฌ์ฃผ๋ ๊ณผ์ ์์ ์๋ณธ ๋ฐ์ดํฐ๊ฐ ๋ณํ๋ ๊ฒ์ด๋ผ๊ณ ์์ํ์ง ๋ชปํ ๊ฒ ๊ฐ์ต๋๋ค. ๋๋ฒ์งธ, immutable ๊ฐ์ฒด๋ ์ฌ์ฉ์ด ๋ถ๊ฐ๋ฅํฉ๋๋ค. ํนํ, Redux ๋ฑ ๋ค์์ ์ํ๊ด๋ฆฌ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์์ ๊ฐ์ฒด๋ฅผ immuatableํ๊ฒ ๊ด๋ฆฌํ๊ธฐ ๋๋ฌธ์ ๋ง์ ์ผ์ด์ค์์ ์ฌ์ฉ์ฑ์ด ์ ํ๋ฉ๋๋ค.
์ฝ๊ฐ์ ๋ฉ๋ชจ๋ฆฌ๋ฅผ ๋ ์๋นํ๋๋ผ๋ tui grid ๋ด๋ถ์์ depensive copy๋ฅผ ํตํด ๋ฐ๋ก ๊ด๋ฆฌํ๋ ๋ฐฉ์์ ์ ์ํฉ๋๋ค.
It's label must be changed to 'Bug Report' to 'Feature Request'
Sorry for late replying.
I agree with you, so I'll fix it. Thanks!