1# ArkUI Subsystem Changelog
2
3## cl.arkui.1 Return Value Type Change of getInspectorTree
4
5**Change Impact**
6
7The code that uses the **getInspectorTree** API in versions earlier than OpenHarmony 4.0.3.2 must be adapted.
8
9**Key API/Component Changes**
10
11The return value of the **getInspectorTree** API is changed from the string type to the Object type.
12
13**Adaptation Guide**
14
15Adapt the code that takes the return value of **getInspectorTree** as a string.The sample code is as follows:
16
17- Before change:
18
19```typescript
20console.info(getInspectorTree())
21```
22
23- After change:
24
25```typescript
26console.info(JSON.stringify(getInspectorTree()))
27```
28
29## cl.arkui.2 Deprecation the forceRebuild Attribute of \<GridItem>
30
31**Change Impact**
32
33None. The attribute has no effect.
34
35**Key API/Component Changes**
36
37Deprecate the **forceRebuild** attribute of the **\<GridItem>** component.
38
39**Adaptation Guide**
40
41Delete the code that uses the **forceRebuild** attribute. This will not affect the functionality of the **\<GridItem>** component.
42
43
44## cl.arkui.1 API Changes of the Router Module in API Version 9
45
46Replaced the **enableAlertBeforeBackPage**, **enableBackPageAlert**, **disableAlertBeforeBackPage** APIs in **ohos.router** to **showAlertBeforeBackPage** and **hideAlertBeforeBackPage** to facilitate development.
47
48**Change Impact**
49
50The **enableAlertBeforeBackPage** and **enableBackPageAlert** APIs must be replaced with **showAlertBeforeBackPage**.
51
52The **disableAlertBeforeBackPage** API must be replaced with **hideAlertBeforeBackPage**.
53
54**Key API/Component Changes**
55
56**router.enableAlertBeforeBackPage**, **router.enableBackPageAlert**, and **router.disableAlertBeforeBackPage**
57
58* Before change:
59
60```ts
61router.enableAlertBeforeBackPage();
62router.enableBackPageAlert()
63```
64
65* After change:
66
67```ts
68router.showAlertBeforeBackPage()
69```
70
71* Before change:
72
73```ts
74router.disableAlertBeforeBackPage()
75```
76
77* After change:
78
79```ts
80router.hideAlertBeforeBackPage()
81```
82
83**Adaptation Guide**
84
85Replace **enableAlertBeforeBackPage** and **enableBackPageAlert** with **showAlertBeforeBackPage**.
86
87Replace **disableAlertBeforeBackPage** with **hideAlertBeforeBackPage**.
88