Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue의 iterated emit #77

Open
zerozoo-a opened this issue Aug 18, 2023 · 0 comments
Open

vue의 iterated emit #77

zerozoo-a opened this issue Aug 18, 2023 · 0 comments

Comments

@zerozoo-a
Copy link
Owner

<template>
    <div v-for="(book, i) in books">
        <button v-for="(item, i) in items"
            @click="handler(item)"
        />
    </div>
</template>

<script>
    @Emit('handler')
    handler(item){
    }
</script>

react도 비슷하게 이런 문제가 있고 iterate를 돌면서 마지막 인자로 업데이트가 고정된다.
어떻게 문제를 해결했더라..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant