Multiple Instances

Due to the new additions to how dependencies work, you now have to strictly define how many instances you have in your game. You do this by passing the instances property to the config parameter when calling Quebec.run :

The instance names aren't checked. Only the table length is. That means that you can put any strings inside of the table. It is good practice to name your instances, so you don't get lost during development.

require(game.ReplicatedStorage.Quebec).run(script.services, {
    instances = { "main", "common" }
})

Now, Quebec would wait for two instances to register before running all singletons. You have to define the current instance as well. If you have two instances, then the table must have a length of 2.

Last updated