Giter VIP home page Giter VIP logo

Comments (12)

simeonackermann avatar simeonackermann commented on July 19, 2024

First quite reduced draft of the architecture with required elements.

architecture

Especially the "Action API" will have additional elements like functions/interfaces/classes etc to request the Store, build the Filter etc. Shall I add these to the architecture diagram?

from building-navigator.

simeonackermann avatar simeonackermann commented on July 19, 2024

A more detailed version with additional elements:

architecture-detailed

from building-navigator.

simeonackermann avatar simeonackermann commented on July 19, 2024

I figured out an important update of the flow between the actions, rdfstore and middleware.
We can use the middleware as an API to do asynchronous requests to the rdfstore and pass the results to the redux-store.
The new architecture might look like this:
architecture

A description will follow in the Readme...

from building-navigator.

k00ni avatar k00ni commented on July 19, 2024

Thanks for the sketches, they look good already. But i dont understand, why we need the Middleware API? The container is already subscribed on the redux store and therefore gets called, if anything changes. This kind of asynchronization is already there, why the Middleware?

from building-navigator.

simeonackermann avatar simeonackermann commented on July 19, 2024

In the first sketches the asynchronous call to the rdfstore was made in the action API. But this was wrong. The actions are mainly for synchronous calls to the Redux store.
With a custom middleware we can do an asynchronous call to the rdfstore, fetch places and dispatch them to the Redux store. Therefore the middleware wraps the dispatch function and is independently from actions.

from building-navigator.

k00ni avatar k00ni commented on July 19, 2024

The middleware is basically the handler of asynchron request/responses and delivers. Therefore it makes sense. So the container doesn't wait for something, just fire and forget. But gets called, if an update arrived. This way?

from building-navigator.

simeonackermann avatar simeonackermann commented on July 19, 2024

Yep, thats the way.
And while the sync request is working, the container can subscribe to an 'is-fetching' state, to may view a loading icon.

from building-navigator.

k00ni avatar k00ni commented on July 19, 2024

Ok, sounds good. What are your next steps?

from building-navigator.

k00ni avatar k00ni commented on July 19, 2024

Which bullet points can be already marked solved in the list above?

from building-navigator.

simeonackermann avatar simeonackermann commented on July 19, 2024

With the updated Readme and source we can check the first three points.

The new test concept is still on progress.

from building-navigator.

k00ni avatar k00ni commented on July 19, 2024

Very interesting article how to structure a React application: https://medium.com/@alexmngn/how-to-better-organize-your-react-applications-2fd3ea1920f1#.a0y594u1s

from building-navigator.

simeonackermann avatar simeonackermann commented on July 19, 2024

from building-navigator.

Related Issues (20)

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.