Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Can't use plugins when a certain component has two instances with the same name #16

@jtamary

Description

@jtamary

Hey all,

First of all, this is a truly an awesome project!

In my project I want to render the same component twice with different props, it works really well :)

However, If I write a plugin that uses a hook that receives the components hash (such as prepare_request)

the hooks gets a hash which has only the last component.
I think that the problem is


since it overrides the key.

Just for clarification the batch is sent just fine since it creates the hash differently.

jobs.each_with_index { |job, idx| hash[idx.to_s] = job }

What should I do?

Thanks,
Jonathan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions