You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, agOptions provided to aGrid component via props are read and cached when the component first mounts. This is unintuitive, since typically components react to observable prop changes.
For example, in a client-app, users are presented with an input to toggle the domLayout prop between normal and autoHeight; however, in order to actually achieve this, theGrid needs to be remounted to force the agOptions to be read again.
A couple possible solution:
Stop caching agOptions so they are reactive like most other props. (We could do this by making agOptions a computed getter on GridLocalModel.)
Make agOptions a readonly property of GridModel to more clearly communicate its immutability (does not solve the application issue described above)
The text was updated successfully, but these errors were encountered:
Currently,
agOptions
provided to aGrid
component viaprops
are read and cached when the component first mounts. This is unintuitive, since typically components react to observable prop changes.For example, in a client-app, users are presented with an input to toggle the
domLayout
prop betweennormal
andautoHeight
; however, in order to actually achieve this, theGrid
needs to be remounted to force theagOptions
to be read again.A couple possible solution:
agOptions
so they are reactive like most other props. (We could do this by makingagOptions
acomputed
getter onGridLocalModel
.)agOptions
areadonly
property ofGridModel
to more clearly communicate its immutability (does not solve the application issue described above)The text was updated successfully, but these errors were encountered: