Skip to content

Commit

Permalink
fix: solve the infinite loop
Browse files Browse the repository at this point in the history
I don't fully understand this.
  • Loading branch information
edoardo committed Jun 21, 2023
1 parent 479fe6b commit 0305950
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { CenteredContent, CircularLoader } from '@dhis2/ui'
//import postRobot from '@krakenjs/post-robot'
import PropTypes from 'prop-types'
import React, { useCallback, useEffect, useMemo, useState } from 'react'
import { useDispatch, useSelector } from 'react-redux'
import { useDispatch, useSelector, shallowEqual } from 'react-redux'
import { acAddIframePluginStatus } from '../../../../actions/iframePluginStatus.js'
import {
CHART,
Expand Down Expand Up @@ -38,7 +38,7 @@ const IframePlugin = ({
isFirstOfType,
}) => {
const dispatch = useDispatch()
const iframePluginStatus = useSelector(sGetIframePluginStatus)
const iframePluginStatus = useSelector(sGetIframePluginStatus, shallowEqual)

const { d2 } = useD2()
const { baseUrl } = useConfig()
Expand Down

0 comments on commit 0305950

Please sign in to comment.