Redux setup and store is not found in Reactjs Demo1 folder.
please update it asap as you show it in themeforest metronic page.
Regarfs.
Shahbaz Mughal
Hi,
Thank you for your feedback.
At the moment we do not use Redux in our theme. To handle asynchronous requests we are using React Query library in combination with Context API and we do not have any data to store in Redux.
We had Redux in the older Metronic version and seem like a list of used plugins on Metronic page is outdated, we will update this list in an upcoming release.
Regards,
Lauris Stepanovs,
Keenthemes Support Team
If you are not using redux and data store in React Application then why you showing it on your promo images of sales page so remove it from themeforest otherwise i willl report it there......
Hi,
We apologize for this mistake. Our banner is outdated, we will remove Redux icon from our banner and list of technologies as soon as possible. If you want to include redux in Metronic let me know I will guide you on how you can include and use Redux in Metronic.
Regards,
Lauris Stepanovs,
Keenthemes Support Team
send me details to store data in metronics with redux and saga ...!!!
Firstly you need to install redux and redux-saga dependencies using the command below.
npm install redux
import { createStore } from "redux"
/**
* This is a reducer - a function that takes a current state value and an
* action object describing "what happened", and returns a new state value.
* A reducer"s function signature is: (state, action) => newState
*
* The Redux state should contain only plain JS objects, arrays, and primitives.
* The root state value is usually an object. It"s important that you should
* not mutate the state object, but return a new object if the state changes.
*
* You can use any conditional logic you want in a reducer. In this example,
* we use a switch statement, but it"s not required.
*/
function counterReducer(state = { value: 0 }, action) {
switch (action.type) {
case "counter/incremented":
return { value: state.value + 1 }
case "counter/decremented":
return { value: state.value - 1 }
default:
return state
}
}
// Create a Redux store holding the state of your app.
// Its API is { subscribe, dispatch, getState }.
let store = createStore(counterReducer)
// You can use subscribe() to update the UI in response to state changes.
// Normally you"d use a view binding library (e.g. React Redux) rather than subscribe() directly.
// There may be additional use cases where it"s helpful to subscribe as well.
store.subscribe(() => console.log(store.getState()))
// The only way to mutate the internal state is to dispatch an action.
// The actions can be serialized, logged or stored and later replayed.
store.dispatch({ type: "counter/incremented" })
// {value: 1}
store.dispatch({ type: "counter/incremented" })
// {value: 2}
store.dispatch({ type: "counter/decremented" })
// {value: 1}
Why dont you add Redux and Saga again in your react app as you setup it in your old versions
Hi,
We will consider adding a basic Redux and Redux-Saga configuration in the next releases.
Regards,
Lauris Stepanovs,
Keenthemes Support Team
The banner is already updated. Thank you again for your feedback.