Skip to content

implement predicate in web #21

@goldylucks

Description

@goldylucks

Very cool logger :)

Would be great to change the predicate on the fly for debugging production. Is that possible? Should I send a PR?

This is what I want to do:

enableLogging({ predicate })

function predicate() {
  return window.__MOBX_LOGGER__
}

and then can do window.__MOBX_LOGGER__ = true in the console

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions