Git Product home page Git Product logo

rbx-redux's Introduction

rbx-redux

An (almost) 1:1 conversion of the JS state management library Redux.

I did my best to translate many of the features of Redux, including packages made for it, such as toolkit and thunk. However, translating these features was quite hard, so even though I did lots of unit testing, there still could be some bugs or unoptimized sections. If you happen to notice anything, please open an issue.

Installation

Add this to your wally.toml file:

Redux = "quamatic/[email protected]"

What's included?

NOTE: Just because something is said to be included does not guarantee it works correctly. There are unit tests put in place, but it may not catch all possible cases.

  • Redux

    • createStore (obviously :P)
    • bindActionCreators
    • combineReducers
    • compose
    • applyMiddleware
  • Redux Toolkit

    • autoBatchEnhancer
    • getDefaultMiddleware
    • configureStore
    • createAction
    • createAsyncThunk
    • createReducer
    • createSlice
    • nanoid
    • matchers
    • immutableStateInvariantMiddleware
    • serializableStateInvariantMiddleware
      • For a Roblox environment, I do no see any practical use. But it still can be added.
    • createListenerMiddleware
    • creatEntityAdapter
    • RTK Query
      • RTK Query definitely has no practical use on Roblox, and won't be implemented.
  • Redux DevTools

    • DevTools are an amazing extension of Redux, and are great for live viewing the tree of a store. However, the devtools package itself it quite large with the amount of features it has, and would take quite the effort to implement. It is possible, but tough.
  • Redux Thunk

    • thunkMiddleware
    • withExtraArgument
  • Reselect

    • createSelector
    • createSelectorCreator
  • React-Redux

    • Coming soon!

rbx-redux's People

Contributors

quamatic avatar

Stargazers

 avatar

Watchers

 avatar

rbx-redux's Issues

Reducers cannot return `nil` to mimic update skipping behavior.

Redux allows the user to return undefined to skip a reducer being updated, but this is due to JavaScript having both undefined and null. Luau only has nil, so either this behavior should not be implemented or find a workaround to allow reducer update skipping.

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.