Giter Club home page Giter Club logo

Comments (2)

Sanderand avatar Sanderand commented on June 15, 2024 2

We're running into the same problem. Is anybody working on a fix for this? The only alternative that could possibly work is to implement custom store integrations for our stencil projects.

from stencil-redux.

stanley85 avatar stanley85 commented on June 15, 2024

I am not sure if having different stores could help me with my current need to split ui states on a per datasheet base. What is described may solve the issue I have, but reading its not working atm like this surely gets my +1 to fix this.

Can anyone help me on my usecase, I am a little stuck in the logic:
I have my ui state inside the store and am loading different page data from google firebase. My current ui state is initializied by analyzing the datasheet on componentWillLoad() and then setting it inside the store if there are no values in the store present. How can I store the viewState on a datasheet hash based model? Is there an option to work with typescript maps inside of redux? Maybe I am just missing the point on how to keep the state based on the route without changing each viewState member to work as an named array ...

My viewstate is an object with 3 subkeys basically a collection of 3 lists of booleans controlling the options toggled inside each of the datasheets. The list of options for the viewContainers is dynamically for example I have a list of booleans for the state of an undefined number of accordions. If i change the route to another datasheet the store keeps the state alive but this should be based on the key of the datasheet. Eg my second accordion should persist its open state only in the data hash its been opened ...

Thanks in advance, i did not find any solution on this, maybe its that simple and I am thinking to complicated - I cannot find a working syntax on returning the state when having viewState as an Array inside the store :)

from stencil-redux.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.