Skip to content

Different YGConfig's  #1

@antokhio

Description

@antokhio

//FIXME: if we null config what should we do?

Hi, was browsing code and came across this, can give you a tip here:

So there is two ways to get config YGConfig.New() and YGConfig.GetDefault(), the difference is, that Default is a global config, and it's attached to every node by default. So unless you do YGNode.SetConfig(....) node would already use a Default config... And if you do YGNode.SetConfig(configPtr) only this one node would use that config...

Hope it makes it somewhat clearer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions