MAJ terminée. Nous sommes passés en version 14.6.2 . Pour consulter les "releases notes" associées c'est ici :

https://about.gitlab.com/releases/2022/01/11/security-release-gitlab-14-6-2-released/
https://about.gitlab.com/releases/2022/01/04/gitlab-14-6-1-released/

Commit 4d3c1d2a authored by Yannick Li's avatar Yannick Li
Browse files

Pass handler when opening crdt

parent dcad7819
...@@ -67,9 +67,7 @@ class Game extends React.Component<Record<string, unknown>, IGameState> { ...@@ -67,9 +67,7 @@ class Game extends React.Component<Record<string, unknown>, IGameState> {
"grid" + gridNum, "grid" + gridNum,
"MVMap", "MVMap",
false, false,
function () { this.handler.bind(this)
return;
}
); );
this.state = { this.state = {
gridNum: gridNum, gridNum: gridNum,
...@@ -106,6 +104,13 @@ class Game extends React.Component<Record<string, unknown>, IGameState> { ...@@ -106,6 +104,13 @@ class Game extends React.Component<Record<string, unknown>, IGameState> {
clearInterval(this.timerID); clearInterval(this.timerID);
} }
/**
* Handles update
*/
private handler() {
this.pullGrid();
}
/** /**
* Update cells values from C-Client. * Update cells values from C-Client.
*/ */
...@@ -231,9 +236,7 @@ class Game extends React.Component<Record<string, unknown>, IGameState> { ...@@ -231,9 +236,7 @@ class Game extends React.Component<Record<string, unknown>, IGameState> {
"grid" + gridNum, "grid" + gridNum,
"MVMap", "MVMap",
false, false,
function () { this.handler.bind(this)
return;
}
); );
this.setState({ gridNum: gridNum, mvmap: mvmap }); this.setState({ gridNum: gridNum, mvmap: mvmap });
this.initFrom(generateStaticGrid(gridNum)); this.initFrom(generateStaticGrid(gridNum));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment