Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supply the transition hooks with more data #29

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jezzdk
Copy link
Contributor

@jezzdk jezzdk commented Dec 21, 2021

Summary

Currently it's very difficult to pass data to transition hooks. I have this problem when I want to make a transition and the hooks depend on data that was sent in the request. Currently I have to save the request data on the model, even though it's not necessary to save it in the database. This change will allow more data to be sent to transition hooks.

Type of Change

  • 🚀 New Feature
  • 🐛 Bug Fix
  • 🔨 Refactor
  • ❓ [Other]

@jezzdk jezzdk requested a review from asantibanez as a code owner December 21, 2021 10:18
@jezzdk jezzdk force-pushed the feature/send-more-data-to-hooks branch from e304e6c to b06d42e Compare December 21, 2021 10:45
@riyuk
Copy link

riyuk commented Jul 28, 2023

I dont think this will ever gets merged since you are replacing the current database migration.
Instead there should be a new migration for that.

@asantibanez
Copy link
Owner

Hello @jezzdk .

Let me take a look at this one. Don't like adding extra parameters to the transitionTo method. Let me see if there's another way.

Thanks @riyuk for keeping an eye on this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants