Comments (5)
Absolutely, I wanted to expose a Vue-2 similar API eventually. This was just an experiment to see how it would look like as components.
from core.
I share your concerns, I checked all the places I have used provide/inject and in most the injected state is used either in a method or in a computed property.
from core.
Great, that's what I hoped for 😁
from core.
👍 we use provide/inject pretty much everywhere in vuetify, so keeping the 2.x API (or something like it) is vital for us to be able to update to 3 without a massive rewrite. Also like @znck, most of our usage is in computed properties.
from core.
Quasar relies on 2.x API for provide/inject in a lot of places too. I really like the useInject
hook idea and I think that would fit great.
from core.
Related Issues (20)
- 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 1
- 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 5
- 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
- A render error when using the <transition> and setting mode='out-in/in-out'.(The same problem exists at vue2) HOT 1
- Problems with using Transition and KeepAlive at the same time
- Failed to execute 'observe' on 'ResizeObserver' HOT 1
- 读取某一篇md格式的文档报错
- Use ref<T> with recursive type will cause ts(2589):Type instantiation is excessively deep and possibly infinite. HOT 1
- defineOptions type regression in v3.5.0-alpha.1 HOT 1
- props typings regression in v3.5.0-alpha.1 HOT 1
- inline `defineComponent` props types are missing
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.