Closed asaph26 closed 5 years ago
Versions (please complete the following information):
Describe the bug Error: Cannot read property reverse of null. https://github.com/PillowPillow/ng2-webstorage/blob/02f829dd568c693554c303bf77ac391dfb7bcd4b/projects/ngx-webstorage/src/lib/services/strategyIndex.ts#L16-L17
The following line needs to be updated to use this.strategies instead of using the strategies local variable which can be null and is handled.
this.strategies
Expected behavior No error to occur
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
UPDATE: This issue is solved by including the forRoot() method on the root level.
Hello, thanks for your feedback. Even if your error came from the usage of forRoot, it was a bug too, the library shouldn't crash. The v3.0.0-beta.14 fixed that.
regards,
Versions (please complete the following information):
Describe the bug Error: Cannot read property reverse of null. https://github.com/PillowPillow/ng2-webstorage/blob/02f829dd568c693554c303bf77ac391dfb7bcd4b/projects/ngx-webstorage/src/lib/services/strategyIndex.ts#L16-L17
The following line needs to be updated to use
this.strategies
instead of using the strategies local variable which can be null and is handled.Expected behavior No error to occur
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
UPDATE: This issue is solved by including the forRoot() method on the root level.