Skip to content

Commit 237be8b

Browse files
removed unneeded package.oss.json file and unneeded tests
1 parent f379c37 commit 237be8b

File tree

3 files changed

+2
-171
lines changed

3 files changed

+2
-171
lines changed

node_package/src/pro/ClientSideRenderer.ts

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -311,20 +311,8 @@ export async function hydrateStore(storeNameOrElement: string | Element) {
311311
await storeRenderer.waitUntilHydrated();
312312
}
313313

314-
export const hydrateImmediateHydratedStores = () => {
315-
const railsContext = getRailsContext();
316-
const hasProLicense = railsContext?.rorPro;
317-
318-
if (!hasProLicense) {
319-
console.warn(IMMEDIATE_HYDRATION_PRO_WARNING);
320-
return Promise.resolve();
321-
}
322-
323-
return forAllElementsAsync(
324-
`[${REACT_ON_RAILS_STORE_ATTRIBUTE}][data-immediate-hydration="true"]`,
325-
hydrateStore,
326-
);
327-
};
314+
export const hydrateImmediateHydratedStores = () =>
315+
forAllElementsAsync(`[${REACT_ON_RAILS_STORE_ATTRIBUTE}][data-immediate-hydration="true"]`, hydrateStore);
328316

329317
export const hydrateAllStores = () =>
330318
forAllElementsAsync(`[${REACT_ON_RAILS_STORE_ATTRIBUTE}]`, hydrateStore);

node_package/tests/proLicenseValidation.test.js

Lines changed: 0 additions & 60 deletions
This file was deleted.

package.oss.json

Lines changed: 0 additions & 97 deletions
This file was deleted.

0 commit comments

Comments
 (0)