Skip to content

Commit

Permalink
fix: initial shapes loading from config file
Browse files Browse the repository at this point in the history
  • Loading branch information
daltonmenezes authored and diego3g committed May 16, 2022
1 parent cd54daf commit 490b9e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/renderer/hooks/useShapes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useCallback } from 'react'
import { useCallback, useEffect } from 'react'

import { config } from 'renderer/store'
import { useRoot } from './useRoot'
Expand Down Expand Up @@ -30,6 +30,10 @@ export function useShapes() {
applyShape()
}, [])

useEffect(() => {
applyShape()
}, [])

return {
toggleShapes,
}
Expand Down

0 comments on commit 490b9e6

Please sign in to comment.