TheThingsNetwork / lorawan-stack

The Things Stack, an Open Source LoRaWAN Network Server
https://www.thethingsindustries.com/stack/
Apache License 2.0
973 stars 304 forks source link

Fix mutated state in application reducer #7138

Closed kschiffer closed 3 months ago

kschiffer commented 3 months ago

Summary

This quickfix PR will fix an issue that can make the application stream stop after fetching the initial events.

Changes

Testing

Steps
  1. Go to the device list view of an application
  2. After around 15 seconds, go to the live data page
  3. Observe that the live data has stopped working

Notes for Reviewers

The issue is related to the recent store updates in that the store is now stricter in preventing reducers that mutate the store object directly.

@PavelJankoski I will fix the storybook setup in a separate PR which targets the redesign branch.

Checklist