File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,7 @@ parent.
1212Hot reloading will clear the canvas as the cells are not stored as state.
1313Since components (but not prototype components) are restored upon hot reloading it
1414is possible to save the buffer from the canvas to the component using
15- ` canvas.take_buffer() ` using ` unmount ` on the component, and to restore it using
16- ` mount ` .
17-
18- restore, take buffer
15+ ` canvas.take_buffer() ` when the component is unmounted, and to restore it using ` canvas.restore_buffer ` when the component is mounted.
1916
2017## Example
2118
@@ -84,6 +81,6 @@ Clear the canvas
8481
8582Remove the buffer from the canvas
8683
87- ### ` restore(buffer )`
84+ ### ` restore_buffer(&mut CanvasBuffer )`
8885
8986Sets a buffer to the canvas
You can’t perform that action at this time.
0 commit comments