Skip to content
This repository was archived by the owner on Aug 3, 2023. It is now read-only.
This repository was archived by the owner on Aug 3, 2023. It is now read-only.

If don't call provide in decl process wait for infinity #53

@birhoff

Description

@birhoff

Main problem is that you don't know that. And all what you can do is check all your code. Maybe you can add some stats method to call when something go wrong.
There is a method:

String getState(String name)

But if you has to many modules you just don't want to check them all.
I see solution in some dependency graph with states.
Minor example:

modules.define(
    'A',
    function(provide, prev) {
        var a = {};
        // do not call provide
        //provide(a);
    });

modules.require(
  ['A'],
  function(a) {
    /* never goes here */
  });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions