MCPcopy Create free account
hub / github.com/ccj-007/easy-lowcode / t

Function t

renderer/index.js:853–884  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

851 }
852 var xe = -1, ze = 0, or = 1, Pr = 2;
853 function t(e) {
854 if (e._status === xe) {
855 var r = e._result, a = r();
856 if (a.then(function(y) {
857 if (e._status === ze || e._status === xe) {
858 var f = e;
859 f._status = or, f._result = y;
860 }
861 }, function(y) {
862 if (e._status === ze || e._status === xe) {
863 var f = e;
864 f._status = Pr, f._result = y;
865 }
866 }), e._status === xe) {
867 var o = e;
868 o._status = ze, o._result = a;
869 }
870 }
871 if (e._status === or) {
872 var i = e._result;
873 return i === void 0 && l(`lazy: Expected the result of a dynamic import() call. Instead received: %s
874
875Your code should look like:
876 const MyComponent = lazy(() => import('./MyComponent'))
877
878Did you accidentally put curly braces around the import?`, i), "default" in i || l(`lazy: Expected the result of a dynamic import() call. Instead received: %s
879
880Your code should look like:
881 const MyComponent = lazy(() => import('./MyComponent'))`, i), i.default;
882 } else
883 throw e._result;
884 }
885 function u(e) {
886 var r = {
887 // We use these fields to store the result.

Callers 2

GeFunction · 0.85
cFunction · 0.85

Calls 1

lFunction · 0.70

Tested by

no test coverage detected