Skip to content

8.6.0's new "Query Parameters" function: sticky mismatch between Nunchucks element, and internal state of requests when switching #7000

@jwarner112

Description

@jwarner112

Expected Behavior

As I switch between two requests with identical URLs but different parameters, I expect the assigned nunchucks template to change along with the value it resolves to and, consequently, the URL preview.

Actual Behavior

When switching from one request to the next, the rendered Nunchuck element's text does not change from that of the first request. However, the value previously resolved there (and thus the URL preview) are still correct. If I click on the Nunchucks element, the value is updated using the incorrect Nunchuck text, now giving us the value for the first request. When I update the Nunchuck value and switch back to the first request, the same thing happens -- the new Nunchuck text remains but the old envar is still loaded, until I attempt to modify the Nunchuck value.

Reproduction Steps

Insomnia.Bug.mov
  • Given Request α has a URL param :id that uses Nunchucks Syntax α and has resolved to Envar α
  • Given Request β has a URL param :id that uses Nunchucks Syntax β and has resolved to Envar β
  1. Start on Req α
  2. Switch to Req β
  3. Note that the nunchucks element continues to display the text for Nun α
  4. Note that the URL preview suggests the URL Parameter value is still that of Envar β
  5. Click on the Nunchucks element, open editor
  6. Note that the value to fetch uses Nun α and has resolved to Envar α
  7. Close editor
  8. Note that the URL preview now displays Envar α
  9. Repeat steps 2 through 4, switching α and β in all cases

Is there an existing issue for this?

Additional Information

Thanks for this feature! Really looking forward to using it, but this bug is making it tough for my specific use case.

Insomnia Version

8.6.0

What operating system are you using?

macOS

Operating System Version

macOS Sonoma 14.2.1

Installation method

Homebrew

Last Known Working Insomnia version

8.5.y -- the previous release, sorry I didn't track the exact number.

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-bugBug: general classificationS-unverifiedStatus: Unverified by maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions