InternalState is undefined on Custom Component when operation is 'update'

default discord avatar
lucasdelbel
2 months ago
3

I've been having a problem on rendering an Edit page for a collection, because when I open as an update, selecting it from the list on the admin, the InternalState is coming undefined, and I use it as a condition for rendering the content.



@jarrod_not_jared

  • discord user avatar
    jarrod_not_jared
    Payload Team
    2 months ago

    Can you make a repro? That would be super helpful

  • default discord avatar
    lucasdelbel
    2 months ago

    I fixed it already @jarrod_not_jared . It was about the rerendering actually, I was preventing it to render until it gets populated. Thanks for the attention

  • discord user avatar
    jarrod_not_jared
    Payload Team
    2 months ago

    Nice!

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.