|
Last change
on this file since cdcff72 was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
619 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | var m = require('react-dom');
|
|---|
| 4 | if (process.env.NODE_ENV === 'production') {
|
|---|
| 5 | exports.createRoot = m.createRoot;
|
|---|
| 6 | exports.hydrateRoot = m.hydrateRoot;
|
|---|
| 7 | } else {
|
|---|
| 8 | var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|---|
| 9 | exports.createRoot = function(c, o) {
|
|---|
| 10 | i.usingClientEntryPoint = true;
|
|---|
| 11 | try {
|
|---|
| 12 | return m.createRoot(c, o);
|
|---|
| 13 | } finally {
|
|---|
| 14 | i.usingClientEntryPoint = false;
|
|---|
| 15 | }
|
|---|
| 16 | };
|
|---|
| 17 | exports.hydrateRoot = function(c, h, o) {
|
|---|
| 18 | i.usingClientEntryPoint = true;
|
|---|
| 19 | try {
|
|---|
| 20 | return m.hydrateRoot(c, h, o);
|
|---|
| 21 | } finally {
|
|---|
| 22 | i.usingClientEntryPoint = false;
|
|---|
| 23 | }
|
|---|
| 24 | };
|
|---|
| 25 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.