Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling environment.set(data) when subclassing doesn't set data #70

Open
scottpdo opened this issue Feb 7, 2021 · 0 comments
Open

Calling environment.set(data) when subclassing doesn't set data #70

scottpdo opened this issue Feb 7, 2021 · 0 comments

Comments

@scottpdo
Copy link
Owner

scottpdo commented Feb 7, 2021

Example:

const env = new Environment({
  test: "123"
});
env.get("test"); // returns null

It does work if you call set separately:

const env = new Environment();
env.set({
  test: "123"
});
env.get("test"); // returns "123"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant