File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed 
block-components/typography 
components/dynamic-content-control Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import { useDynamicContent } from '~stackable/components/dynamic-content-control
2020/** 
2121 * WordPress dependencies 
2222 */ 
23+ import  {  Spinner  }  from  '@wordpress/components' 
2324import  {  RichText  }  from  '@wordpress/block-editor' 
2425import  { 
2526	useEffect , 
@@ -92,6 +93,9 @@ export const Typography = memo( forwardRef( ( props, ref ) => {
9293	} ,  [  debouncedText ,  onChange  ]  )  // Don't include `value` in the dependency list because it will cause a double triggering of the `onChange`. 
9394
9495	const  dynamicContentText  =  useDynamicContent (  debouncedText  ) 
96+ 	if  (  dynamicContentText . includes (  'data-stk-dynamic='  )  &&  dynamicContentText . includes (  '></span>'  )  )  { 
97+ 		return  < Spinner  /> 
98+ 	} 
9599
96100	if  (  !  editable  )  { 
97101		return  < TagName  className = {  className  } > {  dynamicContentText  } </ TagName > 
Original file line number Diff line number Diff line change @@ -242,8 +242,6 @@ export const useDynamicContent = ( value = '' ) => {
242242		...select (  'core/block-editor'  ) . getBlock (  clientId  ) , 
243243		context : useContext (  QueryLoopContext  ) , 
244244	} 
245- 	// const queryLoopContext = 
246- 	// blockDetails.context = { ...context } 
247245
248246	return  useSelect (  select  =>  { 
249247		if  (  !  value  ||  !  isString (  value  )  )  { 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments