File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
components/dashboard/src/data Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ import { Message } from "@bufbuild/protobuf";
16
16
import { ReactQueryDevtools } from "@tanstack/react-query-devtools" ;
17
17
import { FunctionComponent } from "react" ;
18
18
import debounce from "lodash.debounce" ;
19
+ // Need to import all the protobuf classes we want to support for hydration
20
+ import * as ConfigurationClasses from "@gitpod/public-api/lib/gitpod/v1/configuration_pb" ;
19
21
20
22
// This is used to version the cache
21
23
// If data we cache changes in a non-backwards compatible way, increment this version
@@ -137,6 +139,8 @@ function initializeMessages() {
137
139
...Object . values ( require ( "@gitpod/public-api/lib/gitpod/v1/organization_pb" ) ) ,
138
140
...Object . values ( require ( "@gitpod/public-api/lib/gitpod/v1/workspace_pb" ) ) ,
139
141
...Object . values ( require ( "@gitpod/public-api/lib/gitpod/v1/pagination_pb" ) ) ,
142
+ ...Object . values ( require ( "@gitpod/public-api/lib/gitpod/v1/pagination_pb" ) ) ,
143
+ ...Object . values ( ConfigurationClasses ) ,
140
144
] ;
141
145
for ( const c of constr ) {
142
146
if ( ( c as any ) . prototype instanceof Message ) {
You can’t perform that action at this time.
0 commit comments