Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
Need help with navigating reactivity
Post Body

Hey all, I’m a junior dev at a company which doesn’t have any dedicated SWE’s. I’m currently working on a massive codebase which was put together by ex employees who had a lot of software knowledge.

On a very high level, in a parent vue component (X), I receive an array of 10 objects. In my template, there’s a v-for which goes through each of these objects, and for each, renders a child component(Y). My responsibility was to create another component Z such that Z will be a child to Y.

I did so and all functionality for Z works perfect. Now my boss comes back with a new approach. Basically inside Z I have a button. You can imagine there’s 10 Y components at any point on my DOM and each has this button Z.

Basically, I need a global button such that for each Y where I didn’t click the button in Z, the text would update on the click of this global button in X.

I have no idea how to implement this. Any help would be appreciated.

Author
Account Strength
100%
Account Age
2 years
Verified Email
Yes
Verified Flair
No
Total Karma
10,329
Link Karma
5,498
Comment Karma
4,806
Profile updated: 3 days ago
Posts updated: 5 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago