Skip to content

Instantly share code, notes, and snippets.

View silverprize's full-sized avatar
🤟

SilverPrize silverprize

🤟
  • Seoul, South Korea
View GitHub Profile
@silverprize
silverprize / intellij-problems.md
Last active March 26, 2020 04:11
IntelijJ problems
@silverprize
silverprize / vue-problems.md
Last active July 16, 2020 07:25
vue-problems

Vue.js + TSX + Storybook 구성이 불가능함

Storybook 패키지로부터 react, react-dom, emotion 패키지의 타입 정의가 컴파일에 포함되는데,
vue에 맞게 intrinsic elements, value-based elements를 타입 호환이 되도록 맞출수가 없다. storybookjs/storybook#7379

템플릿 기반 functional component의 v-for & ref 오동작

부모 컴포넌트에서 functional component엘리먼트에 v-for와 ref를 적용했을때 refInFor가 적용되지 않음.
ref에 지정한 이름의 프로퍼티에 엘리먼트 array로 저장되지 않고 v-for의 마지막 엘리먼트만 저장됨. vuejs/vue#10171 찾아봤는데 vue-template-compiler에 결함이 있다.

@silverprize
silverprize / settings.json
Last active November 25, 2020 09:20
Visual Studio Code settings
{
"editor.lineHeight": 19,
"editor.fontLigatures": "'ss01', 'ss02', 'ss03', 'ss04', 'ss05', 'ss06', 'zero'",
"editor.fontFamily": "'FiraCode-Retina', 'JetBrains Mono', Menlo, Monaco, 'Courier New', monospace",
"editor.tabSize": 2,
"editor.wordWrapColumn": 100,
"editor.wordWrap": "on",
"files.trimTrailingWhitespace": true,
"workbench.colorTheme": "Visual Studio Light",
"workbench.editor.showTabs": true,