File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,15 @@ export async function evaluator(code: string) {
266266 if ( $version . getState ( ) === 'master' ) {
267267 const additionalLibs = await Promise . all ( [
268268 fetchForest ( effector ) ,
269- $viewLib . getState ( ) === 'react'
269+ fetchPatronum ( effector ) ,
270+ ] )
271+ forest = additionalLibs [ 0 ]
272+ patronum = additionalLibs [ 1 ]
273+ } else {
274+ const isVersionWithScopeModule =
275+ parseInt ( $version . getState ( ) . slice ( 0 , 2 ) ) <= 22
276+ if ( isVersionWithScopeModule ) {
277+ effectorBindingSSR = await ( $viewLib . getState ( ) === 'react'
270278 ? fetchEffectorReactSSR ( {
271279 effector,
272280 ...getShimDefinition ( shim ) ,
@@ -276,12 +284,8 @@ export async function evaluator(code: string) {
276284 effector,
277285 'solid-js' : solidJs ,
278286 'solid-js/web' : solidJsWeb ,
279- } ) ,
280- fetchPatronum ( effector ) ,
281- ] )
282- forest = additionalLibs [ 0 ]
283- effectorBindingSSR = additionalLibs [ 1 ]
284- patronum = additionalLibs [ 2 ]
287+ } ) )
288+ }
285289 }
286290 function initViewLib ( apiMap , api ) {
287291 let env
You can’t perform that action at this time.
0 commit comments