Skip to content

Error when i try to send an array or with an alpinejs variable #433

Description

@CodeConKarim

when I try to save my form in this way or send an array in my arguments I get this error which appears :

The GET method is not supported for route livewire/update. Supported methods: POST.

<template x-for="(design,key) in designs" :key="key" >
    <a href="#" wire:click.prevent="$dispatch('openModal', {component: 'templates.share-template', arguments: { templateId: design.id, type: 'add', title: 'Share with friends'}})"
                                                class="flex items-center justify-center text-center rounded-full w-9 h-9 bg-slate-200 hover:bg-slate-400"
                                            >
</template>
<scrip>
          designs: @json($templates),
</script>

image

but when i replace design.id with 204 it's work
{templateId: 204 ....}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions