Skip to content
This repository was archived by the owner on Jan 1, 2025. It is now read-only.
This repository was archived by the owner on Jan 1, 2025. It is now read-only.

[Q] RecoilStateInfo.subscribers.components.name is "<component name not available>" #1518

Open
@mtablo

Description

@mtablo

Hi there,
I'm implementing some kind of devtool.

  const getInfo = useGetRecoilValueInfo_UNSTABLE();
  const info = getInfo(someAtomOrSelector);
  console.log(Array.from(info.subscribers.components));

With this code, I got something like

[
    {
        "name": "<component name not available>"
    },
    {
        "name": "<component name not available>"
    },
    {
        "name": "<component name not available>"
    }
]

It seems the count of the array is correct, but I couldn't get the components' names.
All of my components are type of (...) => JSX.Element.
How can I get the component name properly?

EDIT; recoil version
"recoil": "^0.5.2"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions