Skip to content

Gate doesn't use domain to generate names for internal store and events #449

Closed
@dimensi

Description

@dimensi

Hi, I pass a domain to a gate, compositeName didn't use domain name.

For example:
https://share.effector.dev/JhsYOpNO

const domain = createDomain('root')
const event = domain.createEvent()
const store = restore(event, '')
const gate = createGate({ domain })

console.log(gate.state.compositeName.fullName) // state, 

but expect root/gateName/state

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingeffector-reacteffector-react package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions