Skip to content

Commit 0f2b508

Browse files
authored
Merge pull request #9149 from IgniteUI/ddimitrov/fix-9146-11.1.x
fix(excel-export): workaround an issue in codesandbox
2 parents 6679b67 + fc4ecd4 commit 0f2b508

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

azure-pipelines.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ steps:
1414

1515
- script: npm run lint:lib
1616
displayName: 'Run lint'
17+
env:
18+
NODE_OPTIONS: "--max_old_space_size=4096"
1719

1820
- script: npm run build:lib
1921
displayName: 'Build source code and styles'

projects/igniteui-angular/src/lib/core/setImmediate.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ const run = (id) => {
3535

3636
const listener = (event) => run(event.data);
3737

38-
export const setImmediate = (cb: () => void, ...args) => {
38+
// Use function instead of arrow function to workaround an issue in codesandbox
39+
// eslint-disable-next-line prefer-arrow/prefer-arrow-functions
40+
export function setImmediate(cb: () => void, ...args) {
3941
if (window.setImmediate) {
4042
return window.setImmediate(cb);
4143
}
@@ -53,12 +55,13 @@ export const setImmediate = (cb: () => void, ...args) => {
5355
window.postMessage(counter + '', windowLocation.protocol + '//' + windowLocation.host);
5456

5557
return counter;
56-
};
58+
}
5759

58-
export const clearImmediate = (id: any) => {
60+
// eslint-disable-next-line prefer-arrow/prefer-arrow-functions
61+
export function clearImmediate(id: any) {
5962
if (window.clearImmediate) {
6063
return window.clearImmediate(id);
6164
}
6265

6366
delete queue[id];
64-
};
67+
}

0 commit comments

Comments
 (0)