Comments (15)
I hope it's solid now
Yep, it is
Thanks so much!
from vue-frag.
@3nuc It's very helpful. Thanks for helping!
Will look into that one later today
Edit:
I've minimized the reproduction to this:
https://jsfiddle.net/hirokiosame/hxqo85n2/
from vue-frag.
Seems to work fine: https://codepen.io/privatenumber/pen/dypqEXb
Can you provide a reproduction?
from vue-frag.
Closing since stale
from vue-frag.
@privatenumber I managed to reproduce this. Can you please reopen this issue if the repro is ok?
https://codesandbox.io/s/github/3nuc/vue-frag-issue-16?file=/src/App.vue
Conditions for this to happen:
- (MyInput.vue) a component needs to have a root node that has a v-if on itself. That root node also needs to have v-frag
- next to that component, create div with v-if
- toggle visibility of both elements
Yeah you really need to do some ancient shamanic ritual to trigger this
from vue-frag.
Thanks @3nuc
I trimmed it further to this: https://codesandbox.io/s/admiring-minsky-zek6q?file=/src/MyInput.vue
I also tried reproducing the exact code in JSFiddle for something more bare but couldn't reproduce.
https://jsfiddle.net/hirokiosame/zyrd8q7w/
I'm currently curious if it's related to vue-loader/Vue CLI. Will experiment further.
Edit:
I narrowed it down to a template compilation only happening with the non-browser build:
https://jsfiddle.net/hirokiosame/7nd01byf/
from vue-frag.
Fix released in v1.2.1
from vue-frag.
@privatenumber I see that my previous repro doesn't trigger the error anymore. Thanks!
I updated to 1.2.1 in my work app and unfortunately the error still persists there. Looks like my repro case was only one of N possible cases
I've managed to reproduce the same error under 1.2.1 - I just added 2 MyInputs with :visible next to eachother - https://codesandbox.io/s/github/3nuc/vue-frag-issue-16
from vue-frag.
Good catch!
Minimal reproduction: https://jsfiddle.net/hirokiosame/cnxwz9d4/
from vue-frag.
This case is still bugging: https://jsfiddle.net/hirokiosame/tfjp85g1/
from vue-frag.
Thanks! Managed to find this on 1.2.3 too:
https://jsfiddle.net/astg047y/4/
You're fixing the repros so well and then I come out with some crazy/stupid edge case like adding the second toggler above
EDIT: Hmm the jsfiddle is showing this now
but previously it was the standard "Symbol() of null" even though I didn't change anything
from vue-frag.
Thanks for that test @3nuc
Surfaced a lot of edge-cases and bugs that helped me come to a more holistic approach.
I hope it's solid now: https://jsfiddle.net/hirokiosame/vfxc594p/
from vue-frag.
There's still one edge case out there. Experiencing it in a different part of my project right now but haven't been able to reproduce in jsfiddle yet.
TypeError: can't access property Symbol(), parent is null
patchParentMethods frag.esm.js:124
from vue-frag.
@3nuc please let me know when you are able to reproduce it
from vue-frag.
I released a refactor with exhaustive tests to make sure the DOM APIs return the exact expected values.
Do you mind seeing if that works better for you?
from vue-frag.
Related Issues (20)
- Order is not updated HOT 6
- Error in nextTick: "TypeError: Cannot read property 'after' of undefined" (when using slots with v-if) HOT 2
- Global registration in Nuxt leads to Vue ReferenceError HOT 4
- Using v-frag directive then changing routes multiple times HOT 1
- [nuxt] Html elements order is not preserved during navigation via nuxt-link HOT 4
- IE11 issues HOT 4
- ci: add cross-browser testing
- Can not work with Sortable.js HOT 1
- Error on Nuxt when use v-frag inside an transition component HOT 2
- Elements inside vue-frag are invisible in Selenium HOT 12
- Add sourcemaps HOT 4
- Improve TypeScript declarations HOT 1
- adding "name" field to the fragment component HOT 3
- Element is removed inside keep-alive HOT 3
- Not SSR compatible HOT 3
- TS error on Nuxt HOT 1
- Failed to load config "@pvtnbr" to extend from HOT 3
- ไฝ ๅฅฝ๏ผ่ฏท้ฎไธไธ๏ผ้ๅฝ็ปไปถๆ ๅตไธ็้ฎ้ข HOT 6
- Eslint error: Fragment not found in 'vue-frag' HOT 3
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 vue-frag.