File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ interface UseDesignFromFileAndNode {
5252}
5353
5454export function useDesign ( {
55- use_session_cache = true ,
55+ use_session_cache = false ,
5656 type,
5757 ...props
5858} : UseDesignProp ) {
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import {
2626import { PendingState } from "core/utility-types" ;
2727import { DesignInput } from "@designto/config/input" ;
2828import { convert } from "@design-sdk/figma-node-conversion" ;
29+ import { mapper } from "@design-sdk/figma-remote" ;
2930
3031const pending_workspace_state = createPendingWorkspaceState ( ) ;
3132//
@@ -128,7 +129,8 @@ export default function Page() {
128129 id : page . id ,
129130 name : page . name ,
130131 children : page [ "children" ] ?. map ( ( child ) => {
131- return convert . intoReflectNode ( child ) ;
132+ const _mapped = mapper . mapFigmaRemoteToFigma ( child ) ;
133+ return convert . intoReflectNode ( _mapped ) ;
132134 } ) ,
133135 type : "design" ,
134136 } ) ) ,
You can’t perform that action at this time.
0 commit comments