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

Change Playground Functionality by Implementing Context and Reducer #7

Merged
merged 6 commits into from
May 14, 2023
Merged

Change Playground Functionality by Implementing Context and Reducer #7

merged 6 commits into from
May 14, 2023

Conversation

MahdiTa97
Copy link
Contributor

@MahdiTa97 MahdiTa97 commented May 13, 2023

I add functionality to replace all of the playground states with react reducer and context.

I replaced all new reducer functions with the previous state in src/server/playground/comp/preact.tsx

To use this functionality, we just need to wrap whole the App with ManagedLesanContext !

The code changes proposed in this pull request aim to resolve the problem mentioned in issue #6 .

@hemedani hemedani self-requested a review May 13, 2023 18:25
@hemedani hemedani marked this pull request as draft May 13, 2023 18:57
@hemedani hemedani marked this pull request as ready for review May 13, 2023 18:59
- wrap whole the playground with ManagedLesanContext
- fix mistake in setting of form data
- fix type and initial value of response data
@MahdiTa97
Copy link
Contributor Author

@hemedani the branch now is ready to review and merge.

@hemedani hemedani merged commit 07bb74f into MiaadTeam:main May 14, 2023
@MahdiTa97 MahdiTa97 deleted the feat/6-implement-playground-layout branch May 14, 2023 09:30
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.

2 participants