You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log('Log BEFORE config import');
const config = require('config')
console.log('Log AFTER config import');
console.log('Current Ip', config.application.currentIp);
Logs output:
Log BEFORE config import
Getter called
Getter called
Getter called
Getter called
Getter called
Log AFTER config import
Getter called
Current Ip 123.123.123
Expected behavior
Expected to not calling getters during initialization of config, as in commonJs. For me its needed because I'm using
dynamic cashed values so getters need to be called only after some services will be inited.
Screenshots
Please tell us about your environment:
node-config version: 3.3.9
node-version: v16.17.0
The text was updated successfully, but these errors were encountered:
Describe the bug
// config/default.js
//index.js
Logs output:
Log BEFORE config import
Getter called
Getter called
Getter called
Getter called
Getter called
Log AFTER config import
Getter called
Current Ip 123.123.123
Expected behavior
Expected to not calling getters during initialization of config, as in commonJs. For me its needed because I'm using
dynamic cashed values so getters need to be called only after some services will be inited.
Screenshots
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: