Questions tagged [rematch]
13 questions
3
votes
1 answer
Cannot subscribe react-redux state in reactotron on ubuntu
I want to add reactotron to my react-redux app - I'm using rematch redux plugin. Redux works correct and I can also connect to reactotron desktop app,
but I can not subscribe any state. When I want to subscribe it nothing happen.
There is only…

Marcin46
- 120
- 10
2
votes
1 answer
Invalid Hook call on rematchjs
i'll have a reactjs website where i wanted to migrate from 'rtk' to 'rematch'.
Inside my Navigation i'll have a theme switcher, which executes a dispatch on the rematch store. But I always get the error:
Error: Invalid hook call. Hooks can only be…

Simon Mayrhofer
- 31
- 3
2
votes
2 answers
Getting the state with rematch
I am learning rematch/redux. I can't get the state to show with the API.
I have the model imported in index.js along with the store and the provider. These are my reducers/effects:
import { getItems } from './service'
const products = {
state: {
…

Mario Garcia
- 177
- 1
- 4
- 15
2
votes
0 answers
React redux notify rematch issue
Having trouble rendering Notify (notification component that is triggered onClick) component using rematch: redux framework to build store from models. dispatch(createNotification(config)) is being trigger but its not updating the state. Any idea…

Ruben
- 326
- 3
- 9
1
vote
2 answers
RematchJS - how can I access the state in a model's effect without sending a payload to dispatch
I'm using RematchJS and I'd like to access the state in a model effect without sending a payload to the effect.
The model looks something like this:
export const session = createModel()({
state: {
...
} as SessionModel,
…

buenon
- 145
- 8
1
vote
1 answer
re.match returns false even when string pattern match
I am trying to match a pattern with the string, below is the code
bool(re.match('.._.. abc_xycompanies_........_._zip(001)','23_61 abc_xycompanies_20201212_1_zip(001)'))
The above code returns False, but if i change it to below then it is returning…

Mrinal
- 105
- 7
1
vote
1 answer
How to fix Redux error: Minified Redux error #12
I've just upgraded all my react native app packages and now I'm getting this error when running the app in Xcode:
INFO : BSG_KSCrashReport.c (1513): void bsg_kscrashreport_writeStandardReport(BSG_KSCrash_Context *const, const char *const): Writing…

grabury
- 4,797
- 14
- 67
- 125
1
vote
1 answer
Rematch for Redux: Struggling to see state on different screens
I am new to Rematch for Redux. I am redoing my application using Rematch, but I do not know if I am doing any of this correctly? How/Where do I trigger my reducers and effects (Step 3 in Rematch Docs)? I cannot see my state when I switch between…

Michael Nouwens
- 59
- 2
- 10
0
votes
1 answer
Why does RematchDispatch give `never` type when there is a reducer and an effect with the same name?
I just upgraded from typescript 4.1.2 to 4.3.2 using Rematch.
These rematch packages are used:
"@rematch/core": "2.0.1"
"@rematch/select": "3.0.1"
and I faced a typescript error: Type never has no call signatures.
I looked into the 3rd parties'…

mway
- 3
- 1
0
votes
1 answer
the state in rematch/core is not recorded
I am using the rematch / core library for the first time, a successful request for the internal url is made, but the data from the date is not written to the state, I cannot understand why, please help!
Interestingly, with similar code in the…
0
votes
1 answer
React native legacy navigator with rematch store issue on navigation
I want to use 2 different stores in a react native app. 1 is the simple redux store, and 1 of rematch which is just like a wrapper over it. I am trying something like this,
store.js
import {
applyMiddleware,
createStore as _createStore
} from…

varun
- 55
- 5
0
votes
1 answer
Rematch Loading Typescript keep getting Reducer "loading" returned undefined during initialization
I'm using @rematch/core and @rematch/loading for my redux.
Currently facing some issue. When I put loading plugin keep returning me Reducer "loading" returned undefined during initialization.
import {
init, RematchDispatch, RematchRootState,
}…

ssuhat
- 7,387
- 18
- 61
- 116
0
votes
1 answer
Rematch for Redux: Setting State to that of the Payload when Signing Up
How do I set state to that of my payload? I would like my global state to have the recent changes, not the payload. Please could someone explain why/how this is happening? Do I need to create another reducer/effect to set the state? I want to set…

Michael Nouwens
- 59
- 2
- 10