Skip to content

Regression in v1.6.0: v-if condition on chart labels causes "Maximum call stack size exceeded" error #119

@njk18

Description

@njk18

After upgrading from version 1.5.3 to 1.6.0, my application encounters a "Maximum call stack size exceeded" error when using a v-if condition on a reactive object to check the existence of chart labels in the options for an apexchart. This issue did not occur in version 1.5.3 with the same code.

Uncaught (in promise) RangeError: Maximum call stack size exceeded
    at MutableReactiveHandler.get (chunk-PM4FC3ST.js)
    at Function.value (chunk-UU6VT44U.js)
const dataSetOverview = reactive(overview);
const { dataSet } = toRefs(dataSetOverview);

...

<apexchart
  v-if="dataSet.chartConfig.labels.length > 0"
  type="donut"
  height="375"
  :options="dataSet?.chartConfig"
  :series="dataSet?.series"
/>

vue3-apexcharts: 1.6.0
Vue: 3.5.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions