Skip to content

Mark tile fn functions with some marker to ignore other function actions #14

@amityagov

Description

@amityagov

Hi

How about to mark fn functions with special marker so middleware will ignore other actions like redux-thunk actions?

I have problem with using tiles with thunk middleware. And i have no chance to rewrite existing thunk-based actions).

Example code

if (typeof action === 'function' && action[TILES_ACTION_FUNCTION] === true) {
    return action({ dispatch, getState, promisesStorage, ...paramsToInject });
}

So you need to mark these functions in createTile method or something.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions