Skip to content

Regression: Wrong state calculation with grids spanning multiple pages #7103

@sicikh

Description

@sicikh

Description

Wrong state calculation with grids spanning multiple pages:

#set page(paper: "a10")

#let st = state("st", 0)

#let fn() = {
  st.update(i => i + 1)
  lorem(11)
  st.update(i => i - 1)
}

#grid(fn())

#fn()

Result: #context st.get()
Typst 0.14-rc.1 behaviour Image
Typst 0.13.1 behaviour Image

Note that changing grid to block yields correct 0.13.1 behaviour.

Reproduction URL

https://typst.app/project/rZDNTNryFHOcwEIM5K44nv

Operating system

Web app

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingintrospectionRelated to introspection.regressionSomething that did work before stopped working.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions