Comments (6)
To explain the use case here: I have some user supplied values (strings) I use for checkbox values, but I also want to include checkboxes for special system values (like "all", "none", etc.). So that there is no overlap/conflict between strings, I wanted to use Symbols for system values. I could find some other way escape those strings (like a prefix), but Symbols look to me like the perfect solution available in the language for this.
from core.
In the compilation process of Vue, Symbol cannot be used as a value. During the compiler's operation, event names, directives, etc., are converted into string form.However, Symbol cannot be converted into a string type.
If the explanation is incorrect, please forgive me.
from core.
If the explanation is incorrect, please forgive me.
It's incorrect, unfortunately.
from core.
It's incorrect, unfortunately.
I apologize. If possible, could you also share the reason why Symbol cannot be used? I would like to learn more about it.
from core.
add a pull request to fix this: #10608
from core.
for #10598
from core.
Related Issues (20)
- Lazy loading images only works on first load HOT 2
- The search function of the Chinese official website is not available HOT 6
- defineModel does not preserve all runtime types in prod when types contain boolean HOT 5
- TypeError: Cannot read properties of null (reading '0') in product mode HOT 19
- Storing the props in a `const` before passing them in `h` function causes reactivity problems HOT 2
- The slots objectless prototype function obtained by useSlots HOT 12
- Unhandled error during execution of setup function at <App>:Maximum call stack size exceeded HOT 3
- computed function executed with in an error HOT 2
- v-model does not trigger emit on input number when native functions stepUp/stepDown are called HOT 2
- SFC playground crashed after renaming a file HOT 1
- On hot reload: "VueCompilerError: Element is missing end tag." HOT 1
- `toRaw(attrs)` is not a plain object anymore in ^3.4.22 HOT 8
- 中文文档官网搜索不好用 HOT 2
- Putting a ref inside a ref should unwrap it, but its possible to trick the build system so it still thinks its a ref. HOT 2
- Activated lifecycle hook not triggered in async context HOT 5
- 组件的字面量prop的监听被意外触发 HOT 3
- Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. HOT 14
- A type for a vnode as the first argument of h() is missing
- Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. HOT 3
- [HMR] Something went wrong during Vue component hot-reload. Full reload required. HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from core.